From fed8ae0a3923e425f5d45af3c7e5d87e9e6c6507 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 14 Nov 2014 13:27:45 +0100 Subject: lib/util: use size_t for add_string_to_array(). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Guenther Signed-off-by: Günther Deschner Reviewed-by: Andreas Schneider --- lib/util/samba_util.h | 2 +- lib/util/util_strlist.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/util/samba_util.h b/lib/util/samba_util.h index c6eb3496b9..7687e1b67f 100644 --- a/lib/util/samba_util.h +++ b/lib/util/samba_util.h @@ -316,7 +316,7 @@ _PUBLIC_ char *rfc1738_escape_part(TALLOC_CTX *mem_ctx, const char *url); * number of elements in strings. It will be updated by this function. */ _PUBLIC_ bool add_string_to_array(TALLOC_CTX *mem_ctx, - const char *str, const char ***strings, int *num); + const char *str, const char ***strings, size_t *num); /** varient of strcmp() that handles NULL ptrs diff --git a/lib/util/util_strlist.c b/lib/util/util_strlist.c index e8d2a74221..33c1e08657 100644 --- a/lib/util/util_strlist.c +++ b/lib/util/util_strlist.c @@ -453,7 +453,7 @@ _PUBLIC_ const char **str_list_append_const(const char **list1, * number of elements in strings. It will be updated by this function. */ _PUBLIC_ bool add_string_to_array(TALLOC_CTX *mem_ctx, - const char *str, const char ***strings, int *num) + const char *str, const char ***strings, size_t *num) { char *dup_str = talloc_strdup(mem_ctx, str); -- cgit v1.2.3