mirror of
https://github.com/samba-team/samba.git
synced 2025-03-29 02:50:28 +03:00
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 <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
d44f488317
commit
5544756733
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user