summaryrefslogtreecommitdiff
path: root/event.c
diff options
context:
space:
mode:
authorroot <root>2010-10-15 22:44:41 +0000
committerroot <root>2010-10-15 22:44:41 +0000
commitfdc074f34b5284968cb4174e9c5d2bc253d70d4c (patch)
tree6ce10fe71c36eadc30790d780d0ceb70862ec709 /event.c
parent434c3b77aa4f5ced4961b2ec6b3397c9c683d0fd (diff)
clean up tv/ts handling
Diffstat (limited to 'event.c')
-rw-r--r--event.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/event.c b/event.c
index 4124769..af6267f 100644
--- a/event.c
+++ b/event.c
@@ -63,13 +63,6 @@ struct event_base
static struct event_base *ev_x_cur;
-static void
-ev_tv_set (struct timeval *tv, ev_tstamp at)
-{
- tv->tv_sec = (long)at;
- tv->tv_usec = (long)((at - (ev_tstamp)tv->tv_sec) * 1e6);
-}
-
static ev_tstamp
ev_tv_get (struct timeval *tv)
{
@@ -305,7 +298,7 @@ int event_pending (struct event *ev, short events, struct timeval *tv)
revents |= EV_TIMEOUT;
if (tv)
- ev_tv_set (tv, ev_now (EV_A)); /* not sure if this is right :) */
+ EV_TV_SET (tv, ev_now (EV_A)); /* not sure if this is right :) */
}
return events & revents;