smbd: Make loop index type match loop limit
authorVolker Lendecke <vl@samba.org>
Tue, 15 Oct 2013 09:56:21 +0000 (09:56 +0000)
committerMichael Adam <obnox@samba.org>
Tue, 15 Oct 2013 21:43:30 +0000 (23:43 +0200)
share_mode_data.num_share_modes is a uint32.

48 bytes less in .o text size for -O3 :-)

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/smbd/open.c

index fa7c4a0b0f892841adb42cec6b08802fa830e4cc..9c8b31d08074df93ea25a3bb5e16631eeec3a654 100644 (file)
@@ -1218,7 +1218,7 @@ static void find_oplock_types(files_struct *fsp,
                                bool *got_no_oplock)
 {
        struct share_mode_data *d = lck->data;
-       int i;
+       uint32_t i;
 
        *pp_batch = NULL;
        *pp_ex_or_batch = NULL;