From c7275d3ebda874bc9e5e64aec608751d33a5d000 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 11:50:40 +0800 Subject: Swap parameter position --- anteraja.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'anteraja.c') diff --git a/anteraja.c b/anteraja.c index 1268820..b903548 100644 --- a/anteraja.c +++ b/anteraja.c @@ -3,18 +3,15 @@ extern CURL *curl; -static const char *status_trail[] = { - "status", - NULL -}; +static const char *status_trail[] = { "status", NULL }; void anteraja_init(char *provisions[], struct shipping *shipping) { enum { BASE_PATH, ACCESS_KEY }; shipping->base = malloc(strlen(provisions[BASE_PATH]) + 1); strcpy(shipping->base, provisions[BASE_PATH]); - headers(shipping, (const char *[]){ "access-key-id", "secret-access-key", NULL }, - &provisions[ACCESS_KEY]); + headers((const char *[]){ "access-key-id", "secret-access-key", NULL }, + &provisions[ACCESS_KEY], shipping); shipping->headers = curl_slist_append(shipping->headers, "Content-Type:application/json"); } -- cgit v1.2.3