From 52da44669d4ea5f3c00100617644cab8db306273 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Mon, 28 Jun 2021 08:38:59 +0800 Subject: Rename services to last in recurse --- pikul.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pikul.c b/pikul.c index 0ce57a8..be4dba3 100644 --- a/pikul.c +++ b/pikul.c @@ -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) -- cgit v1.2.3