summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNeil Roberts <neil@linux.intel.com>2011-10-26 18:43:21 +0100
committerNeil Roberts <neil@linux.intel.com>2011-11-16 16:21:31 +0000
commitdbc31b70cc790833d8926ebad3e03c2d236965ae (patch)
treeb4daad5a83c662bc8b3623fe55083825588ddbd8 /tests
parentf4c1ba9ed9f1555f7a6dbd5bbd84f7b936019ead (diff)
downloadcogl-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.c6
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