diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-28 11:01:59 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-28 11:01:59 +0800 |
commit | f26ca413a5d2568fe20cbe4412dd9fbfb88e26dd (patch) | |
tree | 534c89bcaeb9c394b881fdb8b8fa75ffebd86e5d | |
parent | c328f6c002446245ae81fc5f6009555ef71d071c (diff) |
Shorten services_trail to just trail
-rw-r--r-- | handler.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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])); |