r106 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Tue Apr 4 09:26:27 CEST 2006


Author: phk
Date: 2006-04-04 09:26:26 +0200 (Tue, 04 Apr 2006)
New Revision: 106

Modified:
   trunk/varnish-cache/bin/varnishd/cli_event.c
Log:
Use bufferevent_base_set() from libevent


Modified: trunk/varnish-cache/bin/varnishd/cli_event.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cli_event.c	2006-04-04 07:24:54 UTC (rev 105)
+++ trunk/varnish-cache/bin/varnishd/cli_event.c	2006-04-04 07:26:26 UTC (rev 106)
@@ -123,23 +123,6 @@
 	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)
 {




More information about the varnish-commit mailing list