From: Niels Provos Date: Mon, 5 Mar 2007 07:28:15 +0000 (+0000) Subject: EVRPC_MAKE_REQUEST needs the pool argument X-Git-Tag: release-2.0.1-alpha~632 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=50edb19f17555389f18c0d2cef488eed2a643497;p=libevent EVRPC_MAKE_REQUEST needs the pool argument svn:r349 --- diff --git a/evrpc.h b/evrpc.h index 86a6bd83..fc452623 100644 --- a/evrpc.h +++ b/evrpc.h @@ -262,7 +262,7 @@ struct evrpc_request_wrapper { int (*reply_unmarshal)(void *, struct evbuffer*); }; -#define EVRPC_MAKE_REQUEST(name, request, reply, cb, cbarg) \ +#define EVRPC_MAKE_REQUEST(name, pool, request, reply, cb, cbarg) \ evrpc_send_request_##name(pool, request, reply, cb, cbarg) int evrpc_make_request(struct evrpc_request_wrapper *); diff --git a/test/regress_rpc.c b/test/regress_rpc.c index 785127b9..dcae9c9e 100644 --- a/test/regress_rpc.c +++ b/test/regress_rpc.c @@ -381,7 +381,7 @@ rpc_basic_client(void) kill = kill_new(); - EVRPC_MAKE_REQUEST(Message, msg, kill, GotKillCb, NULL); + EVRPC_MAKE_REQUEST(Message, pool, msg, kill, GotKillCb, NULL); test_ok = 0; @@ -395,7 +395,7 @@ rpc_basic_client(void) /* we do it twice to make sure that reuse works correctly */ kill_clear(kill); - EVRPC_MAKE_REQUEST(Message, msg, kill, GotKillCb, NULL); + EVRPC_MAKE_REQUEST(Message, pool, msg, kill, GotKillCb, NULL); event_dispatch(); @@ -441,8 +441,8 @@ rpc_basic_queued_client(void) kill_one = kill_new(); kill_two = kill_new(); - EVRPC_MAKE_REQUEST(Message, msg, kill_one, GotKillCbTwo, NULL); - EVRPC_MAKE_REQUEST(Message, msg, kill_two, GotKillCb, NULL); + EVRPC_MAKE_REQUEST(Message, pool, msg, kill_one, GotKillCbTwo, NULL); + EVRPC_MAKE_REQUEST(Message, pool, msg, kill_two, GotKillCb, NULL); test_ok = 0; @@ -502,7 +502,7 @@ rpc_client_timeout(void) kill = kill_new(); - EVRPC_MAKE_REQUEST(NeverReply, msg, kill, GotErrorCb, NULL); + EVRPC_MAKE_REQUEST(NeverReply, pool, msg, kill, GotErrorCb, NULL); test_ok = 0;