diff options
Diffstat (limited to 'src/common.c')
-rw-r--r-- | src/common.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common.c b/src/common.c index 2593cdc..5a505b2 100644 --- a/src/common.c +++ b/src/common.c @@ -634,7 +634,7 @@ str_map_iter_init (struct str_map_iter *self, struct str_map *map) self->link = NULL; } -static bool +static void * str_map_iter_next (struct str_map_iter *self) { struct str_map *map = self->map; @@ -643,10 +643,10 @@ str_map_iter_next (struct str_map_iter *self) while (!self->link) { if (self->next_index >= map->len) - return false; + return NULL; self->link = map->map[self->next_index++]; } - return true; + return self->link->data; } static uint64_t |