source3: Update all consumers of strtoul_err(), strtoull_err() to new API
[samba.git] / source3 / lib / util_str.c
index 1a27227fe41300316dd90f579becfcd6c7b38807..e660e295c3394a3bd0620bce560b24f8a4755542 100644 (file)
@@ -850,20 +850,20 @@ uint64_t STR_TO_SMB_BIG_UINT(const char *nptr, const char **entptr)
 uint64_t conv_str_size(const char * str)
 {
         uint64_t lval;
-       char * end;
+        char *end;
        int error = 0;
 
         if (str == NULL || *str == '\0') {
                 return 0;
         }
 
-       lval = strtoull_err(str, &end, 10, &error);
+       lval = smb_strtoull(str, &end, 10, &error, SMB_STR_STANDARD);
 
         if (error != 0) {
                 return 0;
         }
 
-        if (*end == '\0') {
+       if (*end == '\0') {
                return lval;
        }