projects
/
libeap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96f5234
)
hostapd_cli: Use os_program_{init,deinit}
author
Jouni Malinen
<j@w1.fi>
Sat, 19 Dec 2009 20:26:36 +0000
(22:26 +0200)
committer
Jouni Malinen
<j@w1.fi>
Sat, 19 Dec 2009 20:26:36 +0000
(22:26 +0200)
hostapd/hostapd_cli.c
patch
|
blob
|
history
diff --git
a/hostapd/hostapd_cli.c
b/hostapd/hostapd_cli.c
index
bac4309
..
964c64d
100644
(file)
--- 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;
}