r2350 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Wed Jan 16 12:44:30 CET 2008


Author: phk
Date: 2008-01-16 12:44:30 +0100 (Wed, 16 Jan 2008)
New Revision: 2350

Modified:
   trunk/varnish-cache/bin/varnishd/cache_httpconn.c
Log:
Mark return value as intentionally unused.


Modified: trunk/varnish-cache/bin/varnishd/cache_httpconn.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_httpconn.c	2008-01-16 11:39:06 UTC (rev 2349)
+++ trunk/varnish-cache/bin/varnishd/cache_httpconn.c	2008-01-16 11:44:30 UTC (rev 2350)
@@ -86,7 +86,7 @@
 	htc->magic = HTTP_CONN_MAGIC;
 	htc->ws = ws;
 	htc->fd = fd;
-	WS_Reserve(htc->ws, (htc->ws->e - htc->ws->s) / 2);
+	(void)WS_Reserve(htc->ws, (htc->ws->e - htc->ws->s) / 2);
 	htc->rxbuf.b = ws->f;
 	htc->rxbuf.e = ws->f;
 	htc->pipeline.b = NULL;
@@ -106,7 +106,7 @@
 	int i;
 
 	CHECK_OBJ_NOTNULL(htc, HTTP_CONN_MAGIC);
-	WS_Reserve(htc->ws, (htc->ws->e - htc->ws->s) / 2);
+	(void)WS_Reserve(htc->ws, (htc->ws->e - htc->ws->s) / 2);
 	htc->rxbuf.b = htc->ws->f;
 	htc->rxbuf.e = htc->ws->f;
 	if (htc->pipeline.b != NULL) {




More information about the varnish-commit mailing list