From: Swen Schillig Date: Tue, 4 Jun 2019 06:59:07 +0000 (+0200) Subject: libcli: Update all consumers of strtoul_err(), strtoull_err() to new API X-Git-Tag: ldb-2.0.5~136 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=39a518b6717a4687f43333b3e62a1765d45f5bff;p=thirdparty%2Fsamba.git libcli: Update all consumers of strtoul_err(), strtoull_err() to new API Signed-off-by: Swen Schillig Reviewed-by: Ralph Boehme Reviewed-by: Christof Schmitt --- diff --git a/libcli/security/dom_sid.c b/libcli/security/dom_sid.c index ac34a92f19c..ecf8926c12c 100644 --- a/libcli/security/dom_sid.c +++ b/libcli/security/dom_sid.c @@ -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; }