aboutsummaryrefslogtreecommitdiffstats
path: root/capture-pcap-util-unix.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2011-06-28 09:00:11 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2011-06-28 09:00:11 +0000
commit8443bbbf757ab65be172b294ff7c32cf93453de8 (patch)
treea97bda6f59cab16eea09e6e4caf2781785378177 /capture-pcap-util-unix.c
parent6c094f6775a72ab2cf362cc5b172393a97dd68f5 (diff)
downloadwireshark-8443bbbf757ab65be172b294ff7c32cf93453de8.tar.gz
wireshark-8443bbbf757ab65be172b294ff7c32cf93453de8.tar.bz2
wireshark-8443bbbf757ab65be172b294ff7c32cf93453de8.zip
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 'capture-pcap-util-unix.c')
-rw-r--r--capture-pcap-util-unix.c6
1 files changed, 3 insertions, 3 deletions
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;
}