From f26ca413a5d2568fe20cbe4412dd9fbfb88e26dd 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 11:01:59 +0800 Subject: Shorten services_trail to just trail --- handler.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/handler.h b/handler.h index 55fa095..6bee180 100644 --- a/handler.h +++ b/handler.h @@ -6,7 +6,7 @@ extern json_tokener *tokener; void recurse(struct json_object *, const char *[], struct json_object **); inline void handle_services(const char *contents, size_t num_bytes, const char *status_trail[], - const char *services_trail[], const char *attributes[], struct pikul_services **services) + const char *trail[], const char *attributes[], struct pikul_services **services) { json_object *response = json_tokener_parse_ex(tokener, contents, num_bytes); enum json_tokener_error error = json_tokener_get_error(tokener); @@ -24,7 +24,7 @@ inline void handle_services(const char *contents, size_t num_bytes, const char * if (json_object_get_int(status) != 200) return; struct json_object *objects = NULL; - recurse(response, services_trail, &objects); + recurse(response, trail, &objects); size_t length = json_object_array_length(objects); *services = malloc(sizeof(struct pikul_services) + sizeof(struct pikul_service *[length])); -- cgit v1.2.3