summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
authorMarc Alexander Lehmann <libev@schmorp.de>2019-08-28 09:45:49 +0000
committerMarc Alexander Lehmann <libev@schmorp.de>2019-08-28 09:45:49 +0000
commit779ad6fae43bc1364abc55de96bb34dfd673c77a (patch)
tree1ef90e11ae31728914c48e330cac52c756c89a5f /ev.c
parent05948cda357f70bfde8bc989eca3920387c10f3a (diff)
downloadlibev-779ad6fae43bc1364abc55de96bb34dfd673c77a.tar.gz
libev-779ad6fae43bc1364abc55de96bb34dfd673c77a.zip
c90
Diffstat (limited to 'ev.c')
-rw-r--r--ev.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/ev.c b/ev.c
index 5fdde9d..162b659 100644
--- a/ev.c
+++ b/ev.c
@@ -2006,9 +2006,11 @@ ev_time (void) EV_NOEXCEPT
}
#endif
- struct timeval tv;
- gettimeofday (&tv, 0);
- return EV_TV_GET (tv);
+ {
+ struct timeval tv;
+ gettimeofday (&tv, 0);
+ return EV_TV_GET (tv);
+ }
}
#endif