diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-05-08 14:06:33 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-05-08 14:06:33 +0000 |
commit | a26442c5acba29b315793e67bc802c4fed13e31d (patch) | |
tree | ef5982c48c0a17a6f692d517d36d4841a3c309b7 /event.c | |
parent | 85ed7133439658bf7b44a99100fcf82eed1d232e (diff) | |
download | libevent-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |