From 8443bbbf757ab65be172b294ff7c32cf93453de8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Tue, 28 Jun 2011 09:00:11 +0000 Subject: 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 --- dftest.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'dftest.c') diff --git a/dftest.c b/dftest.c index c7ad6f363c..c3f42f14f5 100644 --- a/dftest.c +++ b/dftest.c @@ -32,10 +32,6 @@ #include #include -#ifdef NEED_STRERROR_H -#include "wsutil/strerror.h" -#endif - #include #include @@ -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)); } -- cgit v1.2.1