From: Günther Deschner Date: Fri, 5 Feb 2016 10:14:58 +0000 (+0100) Subject: s4-torture: fix gcc6 build warning. X-Git-Tag: tevent-0.9.27~54 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5544756733ced826e1f42fdeae1b67348501668f;p=thirdparty%2Fsamba.git s4-torture: fix gcc6 build warning. source4/torture/raw/eas.c:322:17: warning: comparison of constant '0' with boolean expression is always false [-Wbool-compare] Guenther Signed-off-by: Guenther Deschner Reviewed-by: Jeremy Allison --- diff --git a/source4/torture/raw/eas.c b/source4/torture/raw/eas.c index 15bfb2f072e..eace20ae83a 100644 --- a/source4/torture/raw/eas.c +++ b/source4/torture/raw/eas.c @@ -304,7 +304,7 @@ static bool test_max_eas(struct smbcli_state *cli, struct torture_context *tctx) maxeasize = torture_setting_int(tctx, "maxeasize", 65536); maxeanames = torture_setting_int(tctx, "maxeanames", 101); maxeastart = torture_setting_int(tctx, "maxeastart", 1); - maxeadebug = torture_setting_int(tctx, "maxeadebug", 0); + maxeadebug = torture_setting_bool(tctx, "maxeadebug", false); /* Do some sanity check on possibly passed parms */ if (maxeasize <= 0) { @@ -319,10 +319,6 @@ static bool test_max_eas(struct smbcli_state *cli, struct torture_context *tctx) torture_comment(tctx, "Invalid parameter 'maxeastart=%d'",maxeastart); err = true; } - if (maxeadebug < 0) { - torture_comment(tctx, "Invalid parameter 'maxeadebug=%d'",maxeadebug); - err = true; - } if (err) { torture_comment(tctx, "\n\n"); goto done;