diff options
author | Jouni Malinen <j@w1.fi> | 2011-09-12 22:15:13 +0300 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2011-09-12 22:19:26 +0300 |
commit | 531e420dd785161086dc1d1977838d420188717b (patch) | |
tree | b073796add987b3b6561093b7b6673544b3988bd /src/utils | |
parent | 3d9e2e6615438959c9508f64d5148e06320b4827 (diff) | |
download | external_wpa_supplicant_8_ti-531e420dd785161086dc1d1977838d420188717b.zip external_wpa_supplicant_8_ti-531e420dd785161086dc1d1977838d420188717b.tar.gz external_wpa_supplicant_8_ti-531e420dd785161086dc1d1977838d420188717b.tar.bz2 |
Remove time.h include from utils/includes.h
os_*() wrappers should be used instead of functions from time.h.
Removing the header from includes.h enforces this. os_unix.c can
include this its uses are valid wrapper calls. wps_upnp.c uses
gmtime() for which there is no os_*() wrapper available yet, so
allow it to use time.h, too. Similarly, allow dump_state.c to
use time.h for ctime().
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/includes.h | 1 | ||||
-rw-r--r-- | src/utils/os_unix.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/utils/includes.h b/src/utils/includes.h index 63b5c23..cf2a42b 100644 --- a/src/utils/includes.h +++ b/src/utils/includes.h @@ -34,7 +34,6 @@ #include <errno.h> #endif /* _WIN32_WCE */ #include <ctype.h> -#include <time.h> #ifndef CONFIG_TI_COMPILER #ifndef _MSC_VER diff --git a/src/utils/os_unix.c b/src/utils/os_unix.c index 4e11758..cb3a024 100644 --- a/src/utils/os_unix.c +++ b/src/utils/os_unix.c @@ -14,6 +14,8 @@ #include "includes.h" +#include <time.h> + #ifdef ANDROID #include <linux/capability.h> #include <linux/prctl.h> |