Replace all strerror() with g_strerror().
[obnox/wireshark/wip.git] / epan / uat.c
index a2081c1b392374e9e68ed585f97fad466855c6e5..97066e732a3ee0a0a1409fc477a92255cac2d49b 100644 (file)
@@ -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;
         }
     }