summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_unityed_media.c
diff options
context:
space:
mode:
authorSwen Schillig <swen@linux.ibm.com>2019-06-04 09:04:15 +0200
committerRalph Boehme <slow@samba.org>2019-06-30 11:32:18 +0000
commita75727f191c53ca358cdef930b75d169793f59a3 (patch)
tree86c58f95cad32a1a72f32a7eb328a35704d3126f /source3/modules/vfs_unityed_media.c
parentbf020a8c8db6bb6a0386d3bf69d40116601b1aca (diff)
downloadsamba-a75727f191c53ca358cdef930b75d169793f59a3.tar.gz
source3: 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 'source3/modules/vfs_unityed_media.c')
-rw-r--r--source3/modules/vfs_unityed_media.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/modules/vfs_unityed_media.c b/source3/modules/vfs_unityed_media.c
index 06bbe99402c..43285191cd2 100644
--- a/source3/modules/vfs_unityed_media.c
+++ b/source3/modules/vfs_unityed_media.c
@@ -100,7 +100,6 @@ typedef struct um_dirinfo_struct {
static bool get_digit_group(const char *path, uintmax_t *digit)
{
const char *p = path;
- char *endp = NULL;
codepoint_t cp;
size_t size;
int error = 0;
@@ -121,7 +120,11 @@ static bool get_digit_group(const char *path, uintmax_t *digit)
return false;
}
if ((size == 1) && (isdigit(cp))) {
- *digit = (uintmax_t)strtoul_err(p, &endp, 10, &error);
+ *digit = (uintmax_t)smb_strtoul(p,
+ NULL,
+ 10,
+ &error,
+ SMB_STR_STANDARD);
if (error != 0) {
return false;
}