[master] 7865dd7 Fix unchecked return

Guillaume Quintard guillaume at varnish-software.com
Thu Sep 8 12:22:12 CEST 2016


commit 7865dd7e19d7800df1128dd9ca78a76cb8c322d6
Author: Guillaume Quintard <guillaume at varnish-software.com>
Date:   Thu Sep 8 11:27:28 2016 +0200

    Fix unchecked return

diff --git a/bin/varnishtest/vtc_client.c b/bin/varnishtest/vtc_client.c
index d3c3f8b..9e10019 100644
--- a/bin/varnishtest/vtc_client.c
+++ b/bin/varnishtest/vtc_client.c
@@ -143,7 +143,8 @@ client_thread(void *priv)
 			vtc_log(c->vl, 0, "Failed to open %s: %s",
 			    VSB_data(vsb), err);
 		assert(fd >= 0);
-		VTCP_blocking(fd);
+		/* VTCP_blocking does its own checks, trust it */
+		(void)VTCP_blocking(fd);
 		VTCP_myname(fd, mabuf, sizeof mabuf, mpbuf, sizeof mpbuf);
 		vtc_log(vl, 3, "connected fd %d from %s %s to %s",
 		    fd, mabuf, mpbuf, VSB_data(vsb));



More information about the varnish-commit mailing list