diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-28 08:38:59 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-28 08:38:59 +0800 |
commit | 52da44669d4ea5f3c00100617644cab8db306273 (patch) | |
tree | 7612c10cc53879ddc568b949ad78b1f3de1eee57 | |
parent | 36b87741e0423cab0baaedc5b8e155f4af79498f (diff) |
Rename services to last in recurse
-rw-r--r-- | pikul.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -32,14 +32,14 @@ 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 **services) +void recurse(struct json_object *outer, const char *keys[], struct json_object **last) { struct json_object *inner = NULL; json_object_object_get_ex(outer, *keys, &inner); if (*++keys) - recurse(inner, keys, services); + recurse(inner, keys, last); else - *services = inner; + *last = inner; } struct pikul_services *pikul_services(const char *origin, const char *destination, double weight) |