summaryrefslogtreecommitdiff
path: root/shipping.c
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-27 23:51:46 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-27 23:51:46 +0800
commit9c26a7ea4265b6f372ba40ea5fcb6fc440538813 (patch)
tree1e529c5eefb9b1254d883cb63bc35af5892e499d /shipping.c
parent65a334cf2fe2d7d524c129f0df765463a91f542c (diff)
Make headers function inline
Diffstat (limited to 'shipping.c')
-rw-r--r--shipping.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/shipping.c b/shipping.c
deleted file mode 100644
index f2e263c..0000000
--- a/shipping.c
+++ /dev/null
@@ -1,12 +0,0 @@
-#include <string.h>
-#include "shipping.h"
-
-void headers(struct shipping *shipping, 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);
- }
-}