summaryrefslogtreecommitdiff
path: root/handler.h
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-28 13:11:25 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-28 13:11:25 +0800
commit900dde6e8c46c092299f9d005ca8270b068d5a7d (patch)
treea21dd87c9888e713d08df852a22592cd53dcce6a /handler.h
parent287509b6fda48ffcfd7e807c35a949bbc20da002 (diff)
Join 2 lines
Diffstat (limited to 'handler.h')
-rw-r--r--handler.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/handler.h b/handler.h
index 6bee180..3a38831 100644
--- a/handler.h
+++ b/handler.h
@@ -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++) {