]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Remove unused STR_TO_SMB_BIG_UINT
authorVolker Lendecke <vl@samba.org>
Wed, 14 Jan 2026 09:21:06 +0000 (10:21 +0100)
committerVolker Lendecke <vl@samba.org>
Tue, 20 Jan 2026 11:53:34 +0000 (11:53 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
source3/include/proto.h
source3/lib/util_str.c

index 8847c3f4617b8cb2890d359c9c73d05127499639..c93c521ae677c2ac75452aa344db2b3ef4f2af7c 100644 (file)
@@ -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);
index 7c7872d68093c6572e12eb5c055a4592f95a7ee0..68be9a0ec09a094b43977095379227cafcf9988c 100644 (file)
@@ -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