aboutsummaryrefslogtreecommitdiffstats
path: root/epan/uat.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 /epan/uat.c
parent6c094f6775a72ab2cf362cc5b172393a97dd68f5 (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 'epan/uat.c')
-rw-r--r--epan/uat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/uat.c b/epan/uat.c
index a2081c1b39..97066e732a 100644
--- a/epan/uat.c
+++ b/epan/uat.c
@@ -262,7 +262,7 @@ gboolean uat_save(uat_t* uat, char** error) {
}
if (!fp) {
- *error = ep_strdup_printf("uat_save: error opening '%s': %s",fname,strerror(errno));
+ *error = ep_strdup_printf("uat_save: error opening '%s': %s",fname,g_strerror(errno));
return FALSE;
}
@@ -449,7 +449,7 @@ gboolean uat_fld_chk_num_dec(void* u1 _U_, const char* strptr, unsigned len, con
long i = strtol(str,&str,10);
if ( ( i == 0) && (errno == ERANGE || errno == EINVAL) ) {
- *err = strerror(errno);
+ *err = g_strerror(errno);
return FALSE;
}
}
@@ -464,7 +464,7 @@ gboolean uat_fld_chk_num_hex(void* u1 _U_, const char* strptr, unsigned len, con
long i = strtol(str,&str,16);
if ( ( i == 0) && (errno == ERANGE || errno == EINVAL) ) {
- *err = strerror(errno);
+ *err = g_strerror(errno);
return FALSE;
}
}