summaryrefslogtreecommitdiff
path: root/pikul.c
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-29 09:49:00 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-29 09:49:00 +0800
commit5599a35d6e0f2fd6b550a8196e009fea67e59f6e (patch)
tree6c55b3b31f207ad1b8a39749c15aed9514f9361b /pikul.c
parent900dde6e8c46c092299f9d005ca8270b068d5a7d (diff)
Rename variables
Diffstat (limited to 'pikul.c')
-rw-r--r--pikul.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pikul.c b/pikul.c
index 94ef6fb..8e657b8 100644
--- a/pikul.c
+++ b/pikul.c
@@ -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;
}