EVRPC_MAKE_REQUEST needs the pool argument

svn:r349
This commit is contained in:
Niels Provos 2007-03-05 07:28:15 +00:00
parent fcd55934ae
commit 50edb19f17
2 changed files with 6 additions and 6 deletions

View File

@ -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 *);

View File

@ -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;