smbd: Align integer types
authorVolker Lendecke <vl@samba.org>
Mon, 11 Feb 2019 08:02:39 +0000 (09:02 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 25 Feb 2019 18:36:19 +0000 (19:36 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/smbd/smb2_negprot.c

index 2b725f30f752d5dc84457928779c53d1b9a48416..835c25dea55660506828d4e4c61ebae41db02b4e 100644 (file)
@@ -108,7 +108,7 @@ enum protocol_types smbd_smb2_protocol_dialect_match(const uint8_t *indyn,
        size_t i;
 
        for (i = 0; i < ARRAY_SIZE(pd); i ++) {
-               size_t c = 0;
+               int c = 0;
 
                if (lp_server_max_protocol() < pd[i].proto) {
                        continue;