summaryrefslogtreecommitdiff
path: root/libcli
diff options
context:
space:
mode:
authorSwen Schillig <swen@linux.ibm.com>2019-06-04 08:59:07 +0200
committerRalph Boehme <slow@samba.org>2019-06-30 11:32:18 +0000
commit39a518b6717a4687f43333b3e62a1765d45f5bff (patch)
tree539031a88dcff51e5ebc7598784710e9d220377d /libcli
parenta8bbd60fd9d10afa0aaf9359782428b8836a9732 (diff)
downloadsamba-39a518b6717a4687f43333b3e62a1765d45f5bff.tar.gz
libcli: Update all consumers of strtoul_err(), strtoull_err() to new API
Signed-off-by: Swen Schillig <swen@linux.ibm.com> Reviewed-by: Ralph Boehme <slow@samba.org> Reviewed-by: Christof Schmitt <cs@samba.org>
Diffstat (limited to 'libcli')
-rw-r--r--libcli/security/dom_sid.c6
1 files changed, 3 insertions, 3 deletions
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;
}