summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/main.c b/main.c
index 113abe3..2fd9dfa 100644
--- a/main.c
+++ b/main.c
@@ -34,9 +34,7 @@ int main(int argc, char *argv[])
{
icclient_init("https://demo.interchangecommerce.org/i/demo", "/demo/images", NULL);
icclient_allproducts(NULL, print_catalog);
- struct icclient_admin *admin = icclient_admin_login("demo", "demo", NULL);
- icclient_admin_logout(admin, NULL);
- struct icclient_member *member = icclient_member_login("kirk@icdevgroup.net", "kirk", print);
- icclient_member_logout(member);
+ icclient_admin_login("demo", "demo", print, NULL);
+ icclient_member_login("kirk@icdevgroup.net", "kirk", print, NULL);
icclient_cleanup();
}