summaryrefslogtreecommitdiff
path: root/source3/lib/srprs.h
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2018-05-04 22:28:43 +0200
committerJeremy Allison <jra@samba.org>2018-07-24 20:36:50 +0200
commit7daf5e627690350f19482cf0b72b070a09fd4235 (patch)
tree02c3fc3d086171ebc860d73d51049692b77b126d /source3/lib/srprs.h
parenta845e9614742dbde40070ab0f2589505ee0ed2aa (diff)
downloadsamba-7daf5e627690350f19482cf0b72b070a09fd4235.tar.gz
lib: Fix prototype of srprs_str
Many callers use "-1" as the "len" argument. That's what ssize_t is for. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/lib/srprs.h')
-rw-r--r--source3/lib/srprs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/srprs.h b/source3/lib/srprs.h
index c1aec13e4af..1b3d355c1fb 100644
--- a/source3/lib/srprs.h
+++ b/source3/lib/srprs.h
@@ -65,7 +65,7 @@ bool srprs_char(const char** ptr, char c);
*
* @return true if matched
*/
-bool srprs_str(const char** ptr, const char* str, size_t len);
+bool srprs_str(const char** ptr, const char* str, ssize_t len);
/**
* Match a single character from a set.