diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-28 13:11:25 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-28 13:11:25 +0800 |
commit | 900dde6e8c46c092299f9d005ca8270b068d5a7d (patch) | |
tree | a21dd87c9888e713d08df852a22592cd53dcce6a | |
parent | 287509b6fda48ffcfd7e807c35a949bbc20da002 (diff) |
Join 2 lines
-rw-r--r-- | handler.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -26,8 +26,7 @@ inline void handle_services(const char *contents, size_t num_bytes, const char * struct json_object *objects = NULL; recurse(response, trail, &objects); size_t length = json_object_array_length(objects); - *services = malloc(sizeof(struct pikul_services) - + sizeof(struct pikul_service *[length])); + *services = malloc(sizeof(struct pikul_services) + sizeof(struct pikul_service *[length])); (*services)->length = length; enum { CODE, NAME, ETD, COST }; for (size_t i = 0; i < length; i++) { |