summaryrefslogtreecommitdiff
path: root/example/parse_config.c
diff options
context:
space:
mode:
Diffstat (limited to 'example/parse_config.c')
-rw-r--r--example/parse_config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/parse_config.c b/example/parse_config.c
index e5e32b4..acce032 100644
--- a/example/parse_config.c
+++ b/example/parse_config.c
@@ -59,7 +59,7 @@ main(void)
/* now extract a nested value from the config file */
{
const char * path[] = { "Logging", "timeFormat", (const char *) 0 };
- yajl_val v = yajl_tree_get(node, path, YAJL_TYPE_STRING);
+ yajl_val v = yajl_tree_get(node, path, yajl_t_string);
if (v) printf("Logging/timeFomat: %s\n", YAJL_GET_STRING(v));
else printf("no such node: %s/%s\n", path[0], path[1]);
}