libcli: Update all consumers of strtoul_err(), strtoull_err() to new API
authorSwen Schillig <swen@linux.ibm.com>
Tue, 4 Jun 2019 06:59:07 +0000 (08:59 +0200)
committerRalph Boehme <slow@samba.org>
Sun, 30 Jun 2019 11:32:18 +0000 (11:32 +0000)
Signed-off-by: Swen Schillig <swen@linux.ibm.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
libcli/security/dom_sid.c

index ac34a92f19c99e7e7c3cb4503f6dda37027b6db4..ecf8926c12cd19a12c87481bc722a0854a4fc94f 100644 (file)
@@ -148,7 +148,7 @@ bool dom_sid_parse_endp(const char *sidstr,struct dom_sid *sidout,
                goto format_error;
        }
 
-       conv = strtoul_err(p, &q, 10, &error);
+       conv = smb_strtoul(p, &q, 10, &error, SMB_STR_STANDARD);
        if (error != 0 || (*q != '-') || conv > UINT8_MAX) {
                goto format_error;
        }
@@ -160,7 +160,7 @@ bool dom_sid_parse_endp(const char *sidstr,struct dom_sid *sidout,
        }
 
        /* get identauth */
-       conv = strtoull_err(q, &q, 0, &error);
+       conv = smb_strtoull(q, &q, 0, &error, SMB_STR_STANDARD);
        if (conv & AUTHORITY_MASK || error != 0) {
                goto format_error;
        }
@@ -189,7 +189,7 @@ bool dom_sid_parse_endp(const char *sidstr,struct dom_sid *sidout,
                        goto format_error;
                }
 
-               conv = strtoull_err(q, &end, 10, &error);
+               conv = smb_strtoull(q, &end, 10, &error, SMB_STR_STANDARD);
                if (conv > UINT32_MAX || error != 0) {
                        goto format_error;
                }