aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/eloop_win.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2008-12-10 22:56:37 (GMT)
committerJouni Malinen <j@w1.fi>2008-12-10 22:56:37 (GMT)
commit9e72e1d35683389bf5eebf88cb51ef042dd71901 (patch)
treee914a6275fcca908bada85dbea01ec1542182c7e /src/utils/eloop_win.c
parent702c349e5ea055e57efa82479ac43296fafdcde7 (diff)
downloadhostap-9e72e1d35683389bf5eebf88cb51ef042dd71901.zip
hostap-9e72e1d35683389bf5eebf88cb51ef042dd71901.tar.gz
hostap-9e72e1d35683389bf5eebf88cb51ef042dd71901.tar.bz2
Workaround number of compiler warnings with newer MinGW version
Diffstat (limited to 'src/utils/eloop_win.c')
-rw-r--r--src/utils/eloop_win.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/utils/eloop_win.c b/src/utils/eloop_win.c
index a1ccd94..c95aa76 100644
--- a/src/utils/eloop_win.c
+++ b/src/utils/eloop_win.c
@@ -463,12 +463,11 @@ void eloop_run(void)
while (!eloop.terminate &&
(eloop.timeout || eloop.reader_count > 0 ||
eloop.event_count > 0)) {
+ tv.sec = tv.usec = 0;
if (eloop.timeout) {
os_get_time(&now);
if (os_time_before(&now, &eloop.timeout->time))
os_time_sub(&eloop.timeout->time, &now, &tv);
- else
- tv.sec = tv.usec = 0;
}
count = 0;