Commit c5c365fd authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Use bufferevent_base_set() from libevent


git-svn-id: http://www.varnish-cache.org/svn/trunk@106 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 99f2a284
......@@ -123,23 +123,6 @@ excb(struct bufferevent *bev, short what, void *arg)
printf("%s(%p, %d, %p)\n", __func__, (void*)bev, what, arg);
}
/*
* XXX: included in libevent in CVS
*/
static int
bufferevent_base_set(struct event_base *base, struct bufferevent *bufev)
{
int res;
res = event_base_set(base, &bufev->ev_read);
if (res == -1)
return (res);
res = event_base_set(base, &bufev->ev_write);
return (res);
}
struct cli *
cli_setup(struct event_base *eb, int fdr, int fdw, int ver, struct cli_proto *cli_proto)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment