summaryrefslogtreecommitdiff
path: root/dftest.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2011-06-28 09:00:11 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2011-06-28 09:00:11 +0000
commit8443bbbf757ab65be172b294ff7c32cf93453de8 (patch)
treea97bda6f59cab16eea09e6e4caf2781785378177 /dftest.c
parent6c094f6775a72ab2cf362cc5b172393a97dd68f5 (diff)
downloadwireshark-8443bbbf757ab65be172b294ff7c32cf93453de8.tar.gz
Replace all strerror() with g_strerror().
Remove our local strerror implementation. Mark strerror as locale unsafe API. This fixes bug 5715. svn path=/trunk/; revision=37812
Diffstat (limited to 'dftest.c')
-rw-r--r--dftest.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/dftest.c b/dftest.c
index c7ad6f363c..c3f42f14f5 100644
--- a/dftest.c
+++ b/dftest.c
@@ -32,10 +32,6 @@
#include <string.h>
#include <errno.h>
-#ifdef NEED_STRERROR_H
-#include "wsutil/strerror.h"
-#endif
-
#include <glib.h>
#include <epan/epan.h>
@@ -103,24 +99,24 @@ main(int argc, char **argv)
if (gpf_open_errno != 0) {
fprintf(stderr,
"can't open global preferences file \"%s\": %s.\n",
- pf_path, strerror(gpf_open_errno));
+ pf_path, g_strerror(gpf_open_errno));
}
if (gpf_read_errno != 0) {
fprintf(stderr,
"I/O error reading global preferences file \"%s\": %s.\n",
- pf_path, strerror(gpf_read_errno));
+ pf_path, g_strerror(gpf_read_errno));
}
}
if (pf_path != NULL) {
if (pf_open_errno != 0) {
fprintf(stderr,
"can't open your preferences file \"%s\": %s.\n",
- pf_path, strerror(pf_open_errno));
+ pf_path, g_strerror(pf_open_errno));
}
if (pf_read_errno != 0) {
fprintf(stderr,
"I/O error reading your preferences file \"%s\": %s.\n",
- pf_path, strerror(pf_read_errno));
+ pf_path, g_strerror(pf_read_errno));
}
}
@@ -189,7 +185,7 @@ static void
read_failure_message(const char *filename, int err)
{
fprintf(stderr, "dftest: An error occurred while reading from the file \"%s\": %s.\n",
- filename, strerror(err));
+ filename, g_strerror(err));
}
/*
@@ -199,5 +195,5 @@ static void
write_failure_message(const char *filename, int err)
{
fprintf(stderr, "dftest: An error occurred while writing to the file \"%s\": %s.\n",
- filename, strerror(err));
+ filename, g_strerror(err));
}