From c954ef683bce2217fc81723ba79d0b53b01de2e2 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, 19 Jul 2021 12:03:06 +0800 Subject: Merge headers into common.h --- shipping.h | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 shipping.h (limited to 'shipping.h') 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 -#include -#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); - } -} -- cgit v1.2.3