summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2014-11-14 13:27:45 +0100
committerKarolin Seeger <kseeger@samba.org>2014-11-24 21:17:08 +0100
commitfed8ae0a3923e425f5d45af3c7e5d87e9e6c6507 (patch)
tree8a12396ed3e4ed698c9fd71e6cbb48727b56c54b /lib
parente0b65ddefc5e8bf11ad284899c17109163d11d9f (diff)
downloadsamba-fed8ae0a3923e425f5d45af3c7e5d87e9e6c6507.tar.gz
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>
Diffstat (limited to 'lib')
-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 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);