summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2020-04-29 09:07:20 +0200
committerRalph Boehme <slow@samba.org>2020-05-05 11:48:39 +0000
commit1226f435495cabaf95eda3280f75dd0388cde5a1 (patch)
treecce3503020eace7bdf25a85f140f8f77985ba6c9 /source3/utils
parent1814c14f71367dc718328820507b0e97f4216ff6 (diff)
downloadsamba-1226f435495cabaf95eda3280f75dd0388cde5a1.tar.gz
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>
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/clirap2.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/utils/clirap2.c b/source3/utils/clirap2.c
index 5607f7a4114..f72afadc651 100644
--- a/source3/utils/clirap2.c
+++ b/source3/utils/clirap2.c
@@ -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 {\