s3:vfs_nettalk: Fix size types
authorAndreas Schneider <asn@samba.org>
Thu, 7 Dec 2017 17:39:07 +0000 (18:39 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 20 Mar 2018 22:16:16 +0000 (23:16 +0100)
This fixes compilation with -Wstrict-overflow=2

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/modules/vfs_netatalk.c

index 206c3b690607d5c37da36a21cffd6473ca721ff2..3085cf4c7c9a4a4970fb69a1649541506d416a7d 100644 (file)
@@ -118,7 +118,7 @@ static int atalk_unlink_file(const char *path)
 
 static void atalk_add_to_list(name_compare_entry **list)
 {
-       int i, count = 0;
+       size_t i, count = 0;
        name_compare_entry *new_list = 0;
        name_compare_entry *cur_list = 0;