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 --- capture-pcap-util-unix.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'capture-pcap-util-unix.c') diff --git a/capture-pcap-util-unix.c b/capture-pcap-util-unix.c index 3ffda24fac..6ea083cefd 100644 --- a/capture-pcap-util-unix.c +++ b/capture-pcap-util-unix.c @@ -127,7 +127,7 @@ get_interface_list(int *err, char **err_str) if (err_str != NULL) { *err_str = g_strdup_printf( "Can't get list of interfaces: error opening socket: %s", - strerror(errno)); + g_strerror(errno)); } return NULL; } @@ -148,7 +148,7 @@ get_interface_list(int *err, char **err_str) if (err_str != NULL) { *err_str = g_strdup_printf( "Can't get list of interfaces: SIOCGIFCONF ioctl error: %s", - strerror(errno)); + g_strerror(errno)); } goto fail; } @@ -206,7 +206,7 @@ get_interface_list(int *err, char **err_str) if (err_str != NULL) { *err_str = g_strdup_printf( "Can't get list of interfaces: SIOCGIFFLAGS error getting flags for interface %s: %s", - ifr->ifr_name, strerror(errno)); + ifr->ifr_name, g_strerror(errno)); } goto fail; } -- cgit v1.2.3