summaryrefslogtreecommitdiff
path: root/shipping.h
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-07-18 19:31:14 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-07-18 19:31:14 +0800
commit1161463fce40f2e5b59ef6dd7406aa0a55f8d936 (patch)
treee22f3a5b71cec0e5229a55cf1b47908c55600d5b /shipping.h
parent98b431f3b0b1f45b9f05edc43fff19c586658445 (diff)
parent39190eb032cc6a8c2fe9d07ca85f712a229c0b69 (diff)
Merge branch 'master' into sicepat
Diffstat (limited to 'shipping.h')
-rw-r--r--shipping.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/shipping.h b/shipping.h
index e1c5ba5..37ac20f 100644
--- a/shipping.h
+++ b/shipping.h
@@ -2,18 +2,18 @@
#include <curl/curl.h>
#include "pikul.h"
-struct shipping {
+extern struct shipping {
enum pikul_company company;
char *base;
struct curl_slist *headers;
-};
+} shipping;
-inline void headers(const char *fields[], char *provisions[], struct shipping *shipping)
+inline void headers(const char *fields[], char *provisions[])
{
- shipping->headers = NULL;
+ shipping.headers = NULL;
while (*fields) {
char header[strlen(*fields) + strlen(*provisions) + 2];
sprintf(header, "%s:%s", *fields++, *provisions++);
- shipping->headers = curl_slist_append(shipping->headers, header);
+ shipping.headers = curl_slist_append(shipping.headers, header);
}
}