From 143f5b64f187497af728a6d921c599dcc99ed807 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: Sun, 13 Jun 2021 15:41:54 +0800 Subject: Fix the way libcurl has been used --- admin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'admin.c') diff --git a/admin.c b/admin.c index 4e0fdf5..3ba9464 100644 --- a/admin.c +++ b/admin.c @@ -7,7 +7,7 @@ typedef struct icclient_admin icclient_admin; icclient_admin *icclient_admin_login(const char *username, const char *password, const char *successpage, const char *nextpage, const char *failpage, - icclient_handler handler) + void (*handler)(icclient_fetch_t *)) { icclient_admin *admin = malloc(sizeof(icclient_admin)); admin->name = NULL; @@ -19,7 +19,7 @@ icclient_admin *icclient_admin_login(const char *username, const char *password, void icclient_admin_newitem(const char *description, const char *comment, const char *price, const char *image_path) { - request(NULL, NULL, &(struct icclient_request_data){ 15, { + request(NULL, NULL, &(struct body){ 15, { { "mv_click", "process_filter" }, { "mv_data_fields", "sku description prod_group category comment inactive price wholesale image thumb image_large weight nontaxable gift_cert" }, { "mv_ui", "1" }, -- cgit v1.2.3