From: Volker Lendecke Date: Wed, 14 Jan 2026 09:21:06 +0000 (+0100) Subject: smbd: Remove unused STR_TO_SMB_BIG_UINT X-Git-Tag: tdb-1.4.15~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=244052442789134cfe4be069a0dd1c1bea8acc2b;p=thirdparty%2Fsamba.git smbd: Remove unused STR_TO_SMB_BIG_UINT Signed-off-by: Volker Lendecke Reviewed-by: Anoop C S --- diff --git a/source3/include/proto.h b/source3/include/proto.h index 8847c3f4617..c93c521ae67 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -542,7 +542,6 @@ bool strlower_m(char *s); bool strupper_m(char *s); int fstr_sprintf(fstring s, const char *fmt, ...); -uint64_t STR_TO_SMB_BIG_UINT(const char *nptr, const char **entptr); uint64_t conv_str_size(const char * str); char *talloc_asprintf_strupper_m(TALLOC_CTX *t, const char *fmt, ...) PRINTF_ATTRIBUTE(2,3); diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c index 7c7872d6809..68be9a0ec09 100644 --- a/source3/lib/util_str.c +++ b/source3/lib/util_str.c @@ -379,33 +379,6 @@ int fstr_sprintf(fstring s, const char *fmt, ...) return ret; } -/* read a SMB_BIG_UINT from a string */ -uint64_t STR_TO_SMB_BIG_UINT(const char *nptr, const char **entptr) -{ - - uint64_t val = (uint64_t)-1; - const char *p = nptr; - - if (!p) { - if (entptr) { - *entptr = p; - } - return val; - } - - while (*p && isspace(*p)) - p++; - - sscanf(p,"%"SCNu64,&val); - if (entptr) { - while (*p && isdigit(*p)) - p++; - *entptr = p; - } - - return val; -} - /* Convert a size specification to a count of bytes. We accept the following * suffixes: * bytes if there is no suffix