From 58bbe66096bc40cede5ea78442f9f0702c73c6ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Fri, 20 Sep 2019 08:17:57 +0800 Subject: Make the request function a variadic one --- post.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'post.h') diff --git a/post.h b/post.h index 05af269..8420d73 100644 --- a/post.h +++ b/post.h @@ -35,7 +35,7 @@ inline void post(const char *path, const char *pairs[], size_t n) , CURLFORM_PTRCONTENTS, content , CURLFORM_END); last = NULL; - request(path, "", NULL, NULL, post); + request(NULL, NULL, post, "%s", path); curl_formfree(post); post = NULL; } -- cgit v1.2.3