aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/hostapd_cli.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-12-19 20:26:36 (GMT)
committerJouni Malinen <j@w1.fi>2009-12-19 20:26:36 (GMT)
commit3433ed8c035b44b052ee29f53c78652ad6ce8712 (patch)
treeb2ebab36d5c592132002f4abb8a9f88792a3e32e /hostapd/hostapd_cli.c
parent96f52347357780848ca3dc153483f4f615991807 (diff)
downloadhostap-3433ed8c035b44b052ee29f53c78652ad6ce8712.zip
hostap-3433ed8c035b44b052ee29f53c78652ad6ce8712.tar.gz
hostap-3433ed8c035b44b052ee29f53c78652ad6ce8712.tar.bz2
hostapd_cli: Use os_program_{init,deinit}
Diffstat (limited to 'hostapd/hostapd_cli.c')
-rw-r--r--hostapd/hostapd_cli.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hostapd/hostapd_cli.c b/hostapd/hostapd_cli.c
index bac4309..964c64d 100644
--- a/hostapd/hostapd_cli.c
+++ b/hostapd/hostapd_cli.c
@@ -625,6 +625,9 @@ int main(int argc, char *argv[])
int warning_displayed = 0;
int c;
+ if (os_program_init())
+ return -1;
+
for (;;) {
c = getopt(argc, argv, "hG:i:p:v");
if (c < 0)
@@ -713,5 +716,6 @@ int main(int argc, char *argv[])
free(ctrl_ifname);
hostapd_cli_close_connection();
+ os_program_deinit();
return 0;
}