summaryrefslogtreecommitdiff
path: root/src/test/test-bitmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/test-bitmap.c')
-rw-r--r--src/test/test-bitmap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/test-bitmap.c b/src/test/test-bitmap.c
index 304888beb9..77db784a94 100644
--- a/src/test/test-bitmap.c
+++ b/src/test/test-bitmap.c
@@ -21,6 +21,7 @@
int main(int argc, const char *argv[]) {
_cleanup_bitmap_free_ Bitmap *b = NULL;
+ Iterator it;
unsigned n = (unsigned) -1, i = 0;
b = bitmap_new();
@@ -61,7 +62,7 @@ int main(int argc, const char *argv[]) {
assert_se(bitmap_set(b, 1) == 0);
assert_se(bitmap_set(b, 256) == 0);
- BITMAP_FOREACH(n, b) {
+ BITMAP_FOREACH(n, b, it) {
assert_se(n == i);
if (i == 0)
i = 1;
@@ -75,7 +76,7 @@ int main(int argc, const char *argv[]) {
i = 0;
- BITMAP_FOREACH(n, b) {
+ BITMAP_FOREACH(n, b, it) {
assert_se(n == i);
if (i == 0)
i = 1;