From a26442c5acba29b315793e67bc802c4fed13e31d Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 8 May 2008 14:06:33 +0000 Subject: 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 --- event.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'event.c') 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); } -- cgit v1.2.1