From 7daf5e627690350f19482cf0b72b070a09fd4235 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 4 May 2018 22:28:43 +0200 Subject: 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 Reviewed-by: Jeremy Allison --- source3/lib/srprs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/lib/srprs.h') 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. -- cgit v1.2.1