winbindd: Align integer types in for loops
authorVolker Lendecke <vl@samba.org>
Fri, 18 May 2018 12:47:24 +0000 (14:47 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 15 Jun 2018 23:06:36 +0000 (01:06 +0200)
Iterate over the same type as the loop limit

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/winbindd/winbindd_util.c

index 9707574723b34b5c673efe24fb76d1f6cc9bf50a..71735edf9c7cbf63d7c80a6e4bca40fd8dfd5e6a 100644 (file)
@@ -602,7 +602,7 @@ static void rescan_forest_root_trusts( void )
 {
        struct winbindd_tdc_domain *dom_list = NULL;
         size_t num_trusts = 0;
-       int i;
+       size_t i;
        NTSTATUS status;
 
        /* The only transitive trusts supported by Windows 2003 AD are
@@ -679,7 +679,7 @@ static void rescan_forest_trusts( void )
        struct winbindd_domain *d = NULL;
        struct winbindd_tdc_domain *dom_list = NULL;
         size_t num_trusts = 0;
-       int i;
+       size_t i;
        NTSTATUS status;
 
        /* The only transitive trusts supported by Windows 2003 AD are