diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2011-06-28 09:00:11 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2011-06-28 09:00:11 +0000 |
commit | 8443bbbf757ab65be172b294ff7c32cf93453de8 (patch) | |
tree | a97bda6f59cab16eea09e6e4caf2781785378177 /randpkt.c | |
parent | 6c094f6775a72ab2cf362cc5b172393a97dd68f5 (diff) |
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 'randpkt.c')
-rw-r--r-- | randpkt.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |