diff options
| author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-13 15:41:54 +0800 |
|---|---|---|
| committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-13 15:41:54 +0800 |
| commit | 143f5b64f187497af728a6d921c599dcc99ed807 (patch) | |
| tree | ba7264b8748c53c57697f9a1c9bf34db279ed468 /admin.c | |
| parent | 4cd6fdb93eca409a76b0af860d9a0599b2f95f53 (diff) | |
Fix the way libcurl has been used
Diffstat (limited to 'admin.c')
| -rw-r--r-- | admin.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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" }, |