summaryrefslogtreecommitdiff
path: root/handler.h
diff options
context:
space:
mode:
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++) {