lib: Move push_skip_string() to clirap2.c
authorVolker Lendecke <vl@samba.org>
Wed, 29 Apr 2020 07:07:20 +0000 (09:07 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 5 May 2020 11:48:39 +0000 (11:48 +0000)
It's only used there

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/include/proto.h
source3/lib/util_str.c
source3/utils/clirap2.c

index 0fd6e64fee397f97bcc0669265f18143566d99a0..3bd336c1d37b842966da0631a34472e1724108ca 100644 (file)
@@ -584,7 +584,6 @@ bool next_token(const char **ptr, char *buff, const char *sep, size_t bufsize);
 bool strnequal(const char *s1,const char *s2,size_t n);
 bool strcsequal(const char *s1,const char *s2);
 bool strnorm(char *s, int case_default);
-char *push_skip_string(char *buf);
 char *skip_string(const char *base, size_t len, char *buf);
 size_t str_charnum(const char *s);
 bool trim_char(char *s,char cfront,char cback);
index cc3c257e41df9e16119d05f86d6f1b8d56dccaab..c62cbe16a590e01237c3f4e2c1786722cda1580e 100644 (file)
@@ -63,16 +63,6 @@ bool strnorm(char *s, int case_default)
                return strlower_m(s);
 }
 
-/**
- *  Skip past some strings in a buffer - old version - no checks.
- *  **/
-
-char *push_skip_string(char *buf)
-{
-       buf += strlen(buf) + 1;
-       return(buf);
-}
-
 /**
  Skip past a string in a buffer. Buffer may not be
  null terminated. end_ptr points to the first byte after
index 5607f7a411423446c7efa9e564af21f2532566f1..f72afadc65152caaac56522079a15096eca4c9d9 100644 (file)
 
 #define GETRES(p,endp) ((p && p+2 < endp) ? SVAL(p,0) : -1)
 
+/**
+ *  Skip past some strings in a buffer - old version - no checks.
+ *  **/
+
+static char *push_skip_string(char *buf)
+{
+       buf += strlen(buf) + 1;
+       return(buf);
+}
+
 /* put string s at p with max len n and increment p past string */
 #define PUTSTRING(p,s,n) \
        do {\