summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2014-11-14 13:27:45 +0100
committerGünther Deschner <gd@samba.org>2014-11-17 17:34:05 +0100
commitee8ddb8e02f70e9d6050490d96a87e4fd2297a05 (patch)
treef201d1d4c7cb6e5b7d47d05db74828a02286eec1
parentd9eb1359d86b47f3d1ef9f20523aeabd844befc8 (diff)
downloadsamba-ee8ddb8e02f70e9d6050490d96a87e4fd2297a05.tar.gz
samba-ee8ddb8e02f70e9d6050490d96a87e4fd2297a05.tar.xz
samba-ee8ddb8e02f70e9d6050490d96a87e4fd2297a05.zip
lib/util: use size_t for add_string_to_array().
Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
-rw-r--r--lib/util/samba_util.h2
-rw-r--r--lib/util/util_strlist.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/util/samba_util.h b/lib/util/samba_util.h
index 2f762ac28d..1c7ae79b70 100644
--- a/lib/util/samba_util.h
+++ b/lib/util/samba_util.h
@@ -253,7 +253,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 9dd4ab3f34..987fdfbdd3 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);