s3:lib: Fix size types in ms_fnmatch()
authorAndreas Schneider <asn@samba.org>
Wed, 21 Mar 2018 10:19:44 +0000 (11:19 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 21 Mar 2018 19:43:19 +0000 (20:43 +0100)
This fixes compilation with -Wstrict-overflow=2

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/ms_fnmatch.c

index 9763afefe76ece44601ad12fbfc8f11ec8738970..a69407b526716951b4e2559acce87ca11e06e157 100644 (file)
@@ -150,7 +150,8 @@ int ms_fnmatch(const char *pattern, const char *string, bool translate_pattern,
 {
        smb_ucs2_t *p = NULL;
        smb_ucs2_t *s = NULL;
-       int ret, count, i;
+       int ret;
+       size_t count, i;
        struct max_n *max_n = NULL;
        struct max_n *max_n_free = NULL;
        struct max_n one_max_n;