summaryrefslogtreecommitdiff
path: root/anteraja.c
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-28 11:50:40 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-28 11:50:40 +0800
commitc7275d3ebda874bc9e5e64aec608751d33a5d000 (patch)
treeea5dea492952af75259dc0bdacf0f0c9f5c4994a /anteraja.c
parent37f68c44c01cd64b3e54c3677aa71c767e13c4d6 (diff)
Swap parameter position
Diffstat (limited to 'anteraja.c')
-rw-r--r--anteraja.c9
1 files changed, 3 insertions, 6 deletions
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");
}