From f26ca413a5d2568fe20cbe4412dd9fbfb88e26dd Mon Sep 17 00:00:00 2001 From: ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ 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.3