mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
lib: Move push_skip_string() to clirap2.c
It's only used there Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
1814c14f71
commit
1226f43549
@ -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);
|
||||
|
@ -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
|
||||
|
@ -117,6 +117,16 @@
|
||||
|
||||
#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 {\
|
||||
|
Loading…
Reference in New Issue
Block a user