From 96f4b81182f15a8a209ffe3ad023f67583999e3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Sat, 2 Aug 2014 23:31:41 +0200 Subject: kike: implement LIST --- src/common.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/common.c') 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 -- cgit v1.2.3