r19118: get rid of a bunch of bool misuse warnings
authorAndrew Tridgell <tridge@samba.org>
Fri, 6 Oct 2006 09:26:29 +0000 (09:26 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:20:36 +0000 (14:20 -0500)
(This used to be commit e620f44643caf93a8bcb203a966c986c14a8dc0e)

source4/lib/talloc/testsuite.c

index 70ee35cbef66a083e86caabd4284715308297e67..1a2a60a3a36da8a50d77cabb1f4ab4f0cf3b23b9 100644 (file)
@@ -1065,27 +1065,27 @@ bool torture_local_talloc(struct torture_context *torture)
        talloc_disable_null_tracking();
        talloc_enable_null_tracking();
 
-       ret &= test_ref1();
-       ret &= test_ref2();
-       ret &= test_ref3();
-       ret &= test_ref4();
-       ret &= test_unlink1();
-       ret &= test_misc();
-       ret &= test_realloc();
-       ret &= test_realloc_child();
-       ret &= test_steal();
-       ret &= test_move();
-       ret &= test_unref_reparent();
-       ret &= test_realloc_fn();
-       ret &= test_type();
-       ret &= test_lifeless();
-       ret &= test_loop();
-       ret &= test_free_parent_deny_child();
-       ret &= test_talloc_ptrtype();
+       ret = ret && test_ref1();
+       ret = ret && test_ref2();
+       ret = ret && test_ref3();
+       ret = ret && test_ref4();
+       ret = ret && test_unlink1();
+       ret = ret && test_misc();
+       ret = ret && test_realloc();
+       ret = ret && test_realloc_child();
+       ret = ret && test_steal();
+       ret = ret && test_move();
+       ret = ret && test_unref_reparent();
+       ret = ret && test_realloc_fn();
+       ret = ret && test_type();
+       ret = ret && test_lifeless();
+       ret = ret && test_loop();
+       ret = ret && test_free_parent_deny_child();
+       ret = ret && test_talloc_ptrtype();
        if (ret) {
-               ret &= test_speed();
+               ret = ret &&  test_speed();
        }
-       ret &= test_autofree();
+       ret = ret && test_autofree();
 
        return ret;
 }