hostapd_cli: Use os_program_{init,deinit}

This commit is contained in:
Jouni Malinen 2009-12-19 22:26:36 +02:00
parent 96f5234735
commit 3433ed8c03

View file

@ -625,6 +625,9 @@ int main(int argc, char *argv[])
int warning_displayed = 0; int warning_displayed = 0;
int c; int c;
if (os_program_init())
return -1;
for (;;) { for (;;) {
c = getopt(argc, argv, "hG:i:p:v"); c = getopt(argc, argv, "hG:i:p:v");
if (c < 0) if (c < 0)
@ -713,5 +716,6 @@ int main(int argc, char *argv[])
free(ctrl_ifname); free(ctrl_ifname);
hostapd_cli_close_connection(); hostapd_cli_close_connection();
os_program_deinit();
return 0; return 0;
} }