aboutsummaryrefslogtreecommitdiffstats
path: root/dftest.c
diff options
context:
space:
mode:
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));
}