diff options
author | Günther Deschner <gd@samba.org> | 2016-02-05 11:14:58 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2016-02-06 21:48:18 +0100 |
commit | 5544756733ced826e1f42fdeae1b67348501668f (patch) | |
tree | 9dd42a48cb6b31f6262aab7c08587cc8e2963ff2 /source4/torture/raw | |
parent | d44f488317b431317963b42993cc56e2289a4d0d (diff) | |
download | samba-5544756733ced826e1f42fdeae1b67348501668f.tar.gz |
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>
Diffstat (limited to 'source4/torture/raw')
-rw-r--r-- | source4/torture/raw/eas.c | 6 |
1 files changed, 1 insertions, 5 deletions
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; |