diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-29 09:49:00 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-29 09:49:00 +0800 |
commit | 5599a35d6e0f2fd6b550a8196e009fea67e59f6e (patch) | |
tree | 6c55b3b31f207ad1b8a39749c15aed9514f9361b /pikul.c | |
parent | 900dde6e8c46c092299f9d005ca8270b068d5a7d (diff) |
Rename variables
Diffstat (limited to 'pikul.c')
-rw-r--r-- | pikul.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -32,12 +32,12 @@ void pikul_init(enum pikul_company company, char *provisions[]) tokener = json_tokener_new(); } -void recurse(struct json_object *outer, const char *keys[], struct json_object **last) +void recurse(struct json_object *outer, const char *trail[], struct json_object **last) { struct json_object *inner = NULL; - json_object_object_get_ex(outer, *keys, &inner); - if (*++keys) - recurse(inner, keys, last); + json_object_object_get_ex(outer, *trail, &inner); + if (*++trail) + recurse(inner, trail, last); else *last = inner; } |