projects
/
libeap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f45fb67
)
hostapd: Call os_program_{init,deinit}()
author
Jouni Malinen
<j@w1.fi>
Sat, 19 Dec 2009 18:55:17 +0000
(20:55 +0200)
committer
Jouni Malinen
<j@w1.fi>
Sat, 19 Dec 2009 18:55:17 +0000
(20:55 +0200)
hostapd/main.c
patch
|
blob
|
history
diff --git
a/hostapd/main.c
b/hostapd/main.c
index
77f2050
..
164c214
100644
(file)
--- a/
hostapd/main.c
+++ b/
hostapd/main.c
@@
-400,6
+400,9
@@
int main(int argc, char *argv[])
int c, debug = 0, daemonize = 0;
char *pid_file = NULL;
+ if (os_program_init())
+ return -1;
+
for (;;) {
c = getopt(argc, argv, "BdhKP:tv");
if (c < 0)
@@
-474,5
+477,7
@@
int main(int argc, char *argv[])
hostapd_global_deinit(pid_file);
os_free(pid_file);
+ os_program_deinit();
+
return ret;
}