aboutsummaryrefslogtreecommitdiff
path: root/src/common.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2014-08-02 23:31:41 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2014-08-03 00:57:25 +0200
commit96f4b81182f15a8a209ffe3ad023f67583999e3c (patch)
tree5980fab137c95f38ef1cac9d6a2b7ce7ae477119 /src/common.c
parent97f35bedfd333dea7e46b535c8cf9093fecfad11 (diff)
downloadxK-96f4b81182f15a8a209ffe3ad023f67583999e3c.tar.gz
xK-96f4b81182f15a8a209ffe3ad023f67583999e3c.tar.xz
xK-96f4b81182f15a8a209ffe3ad023f67583999e3c.zip
kike: implement LIST
Diffstat (limited to 'src/common.c')
-rw-r--r--src/common.c6
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