From 948be2a6464f54931350b4ace101b00ee4b73403 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: Thu, 22 Sep 2022 16:18:24 +0800 Subject: Reorder some lines --- shopify.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shopify.c b/shopify.c index 74b09fd..373d0f1 100644 --- a/shopify.c +++ b/shopify.c @@ -7,8 +7,8 @@ #include #include #include -#include #include +#include #include "shopify.h" #define AUTH_URL \ @@ -594,9 +594,9 @@ void shopify_graphql(const char *query, const struct shopify_session *session, char **json) { CURL *curl = curl_easy_init(); - curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, append); - curl_easy_setopt(curl, CURLOPT_WRITEDATA, json); curl_easy_setopt(curl, CURLOPT_POSTFIELDS, query); + curl_easy_setopt(curl, CURLOPT_WRITEDATA, json); + curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, append); static const char *url_tmpl = "https://%s/admin/api/2022-07/graphql.json"; -- cgit v1.2.3