summaryrefslogtreecommitdiff
path: root/evrpc.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-11-07 06:01:57 +0000
committerNick Mathewson <nickm@torproject.org>2007-11-07 06:01:57 +0000
commitf74e7258fd29a341b4ecf08dfdb83e50aaee3255 (patch)
tree8cf870c606114b9bd242ac88ea01b50c7192a8a2 /evrpc.c
parentd0ce7d4ed7f6f269fdc93039d739fecf28495c24 (diff)
downloadlibevent-f74e7258fd29a341b4ecf08dfdb83e50aaee3255.tar.gz
r16501@catbus: nickm | 2007-11-07 01:00:31 -0500
This is one of those patches which will either make matters far simpler after the bugs shake out, or will get reverted pretty quick once we realize that it is a stupid idea. We now post-process the config.h file into a new event-config.h file, whose macros are prefixed with _EVENT_ and which is thus safe for headers to include. Using this, we can define replacement timeval manipulation functions in evutil.h, and use them uniformly through our code. We can also detect which headers are needful in event.h, and include them as required. This is also the perfect time to remove the long-deprecated acconfig.h file, so that autoheader no longer warns. Should resolve the following issues: [ 1826530 ] Header files should have access to autoconf output. [ 1826545 ] acconfig.h is deprecated. [ 1826564 ] On some platforms, event.h can't be included alone. svn:r492
Diffstat (limited to 'evrpc.c')
-rw-r--r--evrpc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/evrpc.c b/evrpc.c
index d7f6fb0b..63378326 100644
--- a/evrpc.c
+++ b/evrpc.c
@@ -60,6 +60,7 @@
#include "evrpc.h"
#include "evrpc-internal.h"
#include "evhttp.h"
+#include "evutil.h"
#include "log.h"
struct evrpc_base *
@@ -533,7 +534,7 @@ evrpc_schedule_request(struct evhttp_connection *connection,
* a timeout after which the whole rpc is going to be aborted.
*/
struct timeval tv;
- timerclear(&tv);
+ evutil_timerclear(&tv);
tv.tv_sec = pool->timeout;
evtimer_add(&ctx->ev_timeout, &tv);
}