summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-10-15 09:56:21 +0000
committerMichael Adam <obnox@samba.org>2013-10-15 23:43:30 +0200
commit0f71730d1bd1e60b439a45e56d5e68423706c897 (patch)
tree40b16d9d487fb6fb28e955a8f38feea1bd58e0be /source3
parent388bf3643d4c0254dbc6e9f77b15a8911405c4e6 (diff)
downloadsamba-0f71730d1bd1e60b439a45e56d5e68423706c897.tar.gz
samba-0f71730d1bd1e60b439a45e56d5e68423706c897.tar.bz2
samba-0f71730d1bd1e60b439a45e56d5e68423706c897.zip
smbd: Make loop index type match loop limit
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>
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index fa7c4a0b0f..9c8b31d080 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -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;