diff options
author | Richard Braun <rbraun@sceen.net> | 2016-12-09 01:41:06 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2016-12-09 01:41:06 +0100 |
commit | 39c13b3b84b34e0938220126c8f147d2b0b6ac89 (patch) | |
tree | 92accef33f04f49a01765e00ec026b092ae0c8ca /test/test_sref_dirty_zeroes.c | |
parent | 84c92cd2be8bc4aea6c14a186f79c2277f0fd4aa (diff) |
Force brackets around one-line conditional statements
This change was done using astyle, with a few manual editing here and
there.
Diffstat (limited to 'test/test_sref_dirty_zeroes.c')
-rw-r--r-- | test/test_sref_dirty_zeroes.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/test_sref_dirty_zeroes.c b/test/test_sref_dirty_zeroes.c index 0c808c4f..e82d35d0 100644 --- a/test/test_sref_dirty_zeroes.c +++ b/test/test_sref_dirty_zeroes.c @@ -59,8 +59,9 @@ test_inc(void *arg) test_transient_ref++; condition_signal(&test_condition); - while (test_transient_ref != 0) + while (test_transient_ref != 0) { condition_wait(&test_condition, &test_lock); + } mutex_unlock(&test_lock); } @@ -80,8 +81,9 @@ test_dec(void *arg) for (;;) { mutex_lock(&test_lock); - while (test_transient_ref == 0) + while (test_transient_ref == 0) { condition_wait(&test_condition, &test_lock); + } test_transient_ref--; condition_signal(&test_condition); |