From: Jouni Malinen Date: Sat, 19 Dec 2009 20:26:36 +0000 (+0200) Subject: hostapd_cli: Use os_program_{init,deinit} X-Git-Tag: hostap_0_7_1~296 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3433ed8c035b44b052ee29f53c78652ad6ce8712;p=thirdparty%2Fhostap.git hostapd_cli: Use os_program_{init,deinit} --- diff --git a/hostapd/hostapd_cli.c b/hostapd/hostapd_cli.c index bac430938..964c64dd2 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; }