summaryrefslogtreecommitdiff
path: root/examples/read_conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/read_conf.c')
-rw-r--r--examples/read_conf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/read_conf.c b/examples/read_conf.c
index 78e4847..f153c15 100644
--- a/examples/read_conf.c
+++ b/examples/read_conf.c
@@ -21,8 +21,8 @@ int main(int argc, char **argv) {
}
const pom_item *item;
pom_item_iter *iter = NULL;
- while ((item = pom_conf_next_item(conf, &iter))) {
- printf("Key: %s, Value: %s\n", item->key, item->value);
+ while ((item = pom_conf_next_item(pom_conf_section(conf, "number"), &iter))) {
+ printf("Number: %s, Value: %s\n", item->key, item->value);
}
pom_unread_key_iter *unread = NULL;
const char *key;