summaryrefslogtreecommitdiff
path: root/lib/param
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2018-03-21 11:26:55 +0100
committerJeremy Allison <jra@samba.org>2018-03-22 01:54:08 +0100
commite0cf35aec23e2fa52a8a2c8b151a81175445efaf (patch)
tree062e7d456df36161969f90eef1abdf485f0abc93 /lib/param
parentb70bb81a191f57612b877564bcf2bae3ecdd1c24 (diff)
downloadsamba-e0cf35aec23e2fa52a8a2c8b151a81175445efaf.tar.gz
lib:param: Fix the size type in lp_do_parameter_parametric()
This fixes compilation with -Wstrict-overflow=2 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Mar 22 01:54:08 CET 2018 on sn-devel-144
Diffstat (limited to 'lib/param')
-rw-r--r--lib/param/loadparm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/param/loadparm.c b/lib/param/loadparm.c
index b46700dfb54..0c1b28babbc 100644
--- a/lib/param/loadparm.c
+++ b/lib/param/loadparm.c
@@ -1598,7 +1598,7 @@ static bool lp_do_parameter_parametric(struct loadparm_context *lp_ctx,
static bool set_variable_helper(TALLOC_CTX *mem_ctx, int parmnum, void *parm_ptr,
const char *pszParmName, const char *pszParmValue)
{
- int i;
+ size_t i;
/* switch on the type of variable it is */
switch (parm_table[parmnum].type)