diff options
author | Neil Roberts <neil@linux.intel.com> | 2011-10-26 18:43:21 +0100 |
---|---|---|
committer | Neil Roberts <neil@linux.intel.com> | 2011-11-16 16:21:31 +0000 |
commit | dbc31b70cc790833d8926ebad3e03c2d236965ae (patch) | |
tree | b4daad5a83c662bc8b3623fe55083825588ddbd8 /tests | |
parent | f4c1ba9ed9f1555f7a6dbd5bbd84f7b936019ead (diff) | |
download | cogl-dbc31b70cc790833d8926ebad3e03c2d236965ae.tar.gz |
cogl-bitmask: Add a return value for the foreach callback
The foreach callback can now return FALSE to stop the iteration.
Reviewed-by: Robert Bragg <robert@linux.intel.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/conform/test-bitmask.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/conform/test-bitmask.c b/tests/conform/test-bitmask.c index b02a9ba3..613e5ee1 100644 --- a/tests/conform/test-bitmask.c +++ b/tests/conform/test-bitmask.c @@ -19,7 +19,7 @@ typedef struct int *bits; } CheckData; -static void +static gboolean check_bit (int bit_num, void *user_data) { CheckData *data = user_data; @@ -29,12 +29,12 @@ check_bit (int bit_num, void *user_data) if (data->bits[i] == bit_num) { data->bits[i] = -1; - return; + return TRUE; } g_assert_not_reached (); - return; + return TRUE; } static void |