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 --- randpkt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'randpkt.c') diff --git a/randpkt.c b/randpkt.c index 173fa0db1e..c1f58f0bf5 100644 --- a/randpkt.c +++ b/randpkt.c @@ -711,7 +711,7 @@ seed(void) if (errno != ENOENT) { fprintf(stderr, "randpkt: Could not open " RANDOM_DEV " for reading: %s\n", - strerror(errno)); + g_strerror(errno)); exit(2); } goto fallback; @@ -721,7 +721,7 @@ seed(void) if (ret == -1) { fprintf(stderr, "randpkt: Could not read from " RANDOM_DEV ": %s\n", - strerror(errno)); + g_strerror(errno)); exit(2); } if ((size_t)ret != sizeof randomness) { -- cgit v1.2.3