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 --- member.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'member.c') diff --git a/member.c b/member.c index 9f64ed7..c5b5e42 100644 --- a/member.c +++ b/member.c @@ -60,7 +60,7 @@ icclient_member *initialise(const char *username, const char *password) icclient_member *icclient_member_newaccount(const char *username, const char *password, const char *verify, const char *successpage, const char *nextpage, - const char *failpage, icclient_handler handler) + const char *failpage, void (*handler)(icclient_fetch_t *)) { icclient_member *member = initialise(username, password); login(username, password, verify, "NewAccount", successpage, nextpage, failpage, handler, member); @@ -68,7 +68,7 @@ icclient_member *icclient_member_newaccount(const char *username, const char *pa } icclient_member *icclient_member_login(const char *username, const char *password, - const char *successpage, const char *nextpage, const char *failpage, icclient_handler handler) + const char *successpage, const char *nextpage, const char *failpage, void (*handler)(icclient_fetch_t *)) { icclient_member *member = initialise(username, password); login(username, password, NULL, "Login", successpage, nextpage, failpage, handler, member); @@ -79,7 +79,7 @@ void icclient_member_account(const char *fname, const char *lname, const char *a const char *address2, const char *city, const char *state, const char *zip, const char *email, const char *phone_day) { - request(NULL, NULL, &(struct icclient_request_data){ 13, { + request(NULL, NULL, &(struct body){ 13, { { "mv_form_profile", "account_change" }, { "mv_todo", "return" }, { "mv_nextpage", "member/account" }, @@ -98,7 +98,7 @@ void icclient_member_account(const char *fname, const char *lname, const char *a void icclient_member_changepassword(const char *password_old, const char *password, const char *verify) { - request(NULL, NULL, &(struct icclient_request_data){ 6, { + request(NULL, NULL, &(struct body){ 6, { { "mv_action", "return" }, { "mv_check", "Change_password" }, { "mv_successpage", "member/service" }, -- cgit v1.2.3