[master] ce7bc7ead Always put macros like this in (...), you never know where they'll end up.

Poul-Henning Kamp phk at FreeBSD.org
Wed Feb 19 08:47:07 UTC 2020


commit ce7bc7ead74bbd66cce6f455a688b18fbe21b1db
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Wed Feb 19 08:45:12 2020 +0000

    Always put macros like this in (...), you never know where they'll end up.

diff --git a/bin/varnishd/proxy/cache_proxy_proto.c b/bin/varnishd/proxy/cache_proxy_proto.c
index 3cc0f48a0..a9b267458 100644
--- a/bin/varnishd/proxy/cache_proxy_proto.c
+++ b/bin/varnishd/proxy/cache_proxy_proto.c
@@ -728,9 +728,9 @@ VPX_Format_Proxy(struct vsb *vsb, int version,
 }
 
 #define PXY_BUFSZ						\
-	sizeof(vpx1_sig) + 4 /* TCPx */ +			\
+	(sizeof(vpx1_sig) + 4 /* TCPx */ +			\
 	2 * VTCP_ADDRBUFSIZE + 2 * VTCP_PORTBUFSIZE +		\
-	6 /* spaces, CRLF */ + 16 /* safety */
+	6 /* spaces, CRLF */ + 16 /* safety */ )
 
 int
 VPX_Send_Proxy(int fd, int version, const struct sess *sp)


More information about the varnish-commit mailing list