diff options
author | Volker Lendecke <vl@samba.org> | 2018-05-04 22:28:43 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2018-07-24 20:36:50 +0200 |
commit | 7daf5e627690350f19482cf0b72b070a09fd4235 (patch) | |
tree | 02c3fc3d086171ebc860d73d51049692b77b126d /source3/lib/srprs.h | |
parent | a845e9614742dbde40070ab0f2589505ee0ed2aa (diff) | |
download | samba-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.h | 2 |
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. |