diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-07-19 12:03:06 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-07-19 12:03:06 +0800 |
commit | c954ef683bce2217fc81723ba79d0b53b01de2e2 (patch) | |
tree | eab02623190964c3c332bd6e4a6c9475f5c5b3c3 /shipping.h | |
parent | 39190eb032cc6a8c2fe9d07ca85f712a229c0b69 (diff) |
Merge headers into common.h
Diffstat (limited to 'shipping.h')
-rw-r--r-- | shipping.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/shipping.h b/shipping.h deleted file mode 100644 index 37ac20f..0000000 --- a/shipping.h +++ /dev/null @@ -1,19 +0,0 @@ -#include <string.h> -#include <curl/curl.h> -#include "pikul.h" - -extern struct shipping { - enum pikul_company company; - char *base; - struct curl_slist *headers; -} shipping; - -inline void headers(const char *fields[], char *provisions[]) -{ - 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); - } -} |