From 900dde6e8c46c092299f9d005ca8270b068d5a7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Mon, 28 Jun 2021 13:11:25 +0800 Subject: Join 2 lines --- handler.h | 3 +-- 1 file changed, 1 insertion(+), 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++) { -- cgit v1.2.3