summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.c b/main.c
index e3f149c..1a26c95 100644
--- a/main.c
+++ b/main.c
@@ -2,6 +2,7 @@
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
+#include <icclient/admin.h>
#include <icclient/client.h>
int main(void)
@@ -26,10 +27,10 @@ int main(void)
icclient_init(url);
free(url);
- icclient_login(name, pass, NULL, NULL, NULL);
+ icclient_admin_login(name, pass, NULL, NULL, NULL);
free(name);
free(pass);
- icclient_logout();
+ icclient_admin_logout();
icclient_cleanup();
}