s4-torture: fix gcc6 build warning.
authorGünther Deschner <gd@samba.org>
Fri, 5 Feb 2016 10:14:58 +0000 (11:14 +0100)
committerJeremy Allison <jra@samba.org>
Sat, 6 Feb 2016 20:48:18 +0000 (21:48 +0100)
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>
source4/torture/raw/eas.c

index 15bfb2f072ec66c0aadb726537b45817dcb73483..eace20ae83a367d7182fe95eacb61dcbf6dffbc3 100644 (file)
@@ -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;