lib: Align integer types
authorVolker Lendecke <vl@samba.org>
Wed, 25 Apr 2018 10:05:37 +0000 (12:05 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 19 Jun 2018 06:59:11 +0000 (08:59 +0200)
Loop-variable and bound should be the same type

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/lib/srprs.c

index a3fd0c3e48a8e2b0378bb89f55e69b1f569fd362..db0448c1788cf6c9157fbfc13ab5e64b43d9515b 100644 (file)
@@ -128,7 +128,7 @@ bool srprs_hex(const char** ptr, size_t len, unsigned* u)
        const char *str = *ptr;
        const char *pos = *ptr;
        int ret;
-       int i;
+       size_t i;
        char buf[8+1] = {};
 
        assert((len >= 1) && (len <= 8));