summaryrefslogtreecommitdiff
path: root/event.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-05-08 14:06:33 +0000
committerNick Mathewson <nickm@torproject.org>2008-05-08 14:06:33 +0000
commita26442c5acba29b315793e67bc802c4fed13e31d (patch)
treeef5982c48c0a17a6f692d517d36d4841a3c309b7 /event.c
parent85ed7133439658bf7b44a99100fcf82eed1d232e (diff)
downloadlibevent-a26442c5acba29b315793e67bc802c4fed13e31d.tar.gz
r19649@catbus: nickm | 2008-05-08 10:00:14 -0400
Replace gettimeofday() usage with a new evutil_gettimeofday(). This removes all previous need for win32-code/misc.[ch] svn:r792
Diffstat (limited to 'event.c')
-rw-r--r--event.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/event.c b/event.c
index 2f5ffa93..3dab7773 100644
--- a/event.c
+++ b/event.c
@@ -171,7 +171,7 @@ gettime(struct event_base *base, struct timeval *tp)
}
#endif
- return (gettimeofday(tp, NULL));
+ return (evutil_gettimeofday(tp, NULL));
}
struct event_base *
@@ -895,7 +895,7 @@ event_pending(struct event *ev, short event, struct timeval *tv)
gettime(ev->ev_base, &now);
evutil_timersub(&ev->ev_timeout, &now, &res);
/* correctly remap to real time */
- gettimeofday(&now, NULL);
+ evutil_gettimeofday(&now, NULL);
evutil_timeradd(&now, &res, tv);
}