[master] e95fda1db Fix compilation on certain llvm versions
Poul-Henning Kamp
phk at FreeBSD.org
Mon Dec 30 12:52:06 UTC 2019
commit e95fda1dbabdcb46547c733e5c744b4e7422a56e
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Mon Dec 30 12:51:42 2019 +0000
Fix compilation on certain llvm versions
diff --git a/lib/libvarnish/vtcp.c b/lib/libvarnish/vtcp.c
index 1d7ca9a18..a7ed8f4f9 100644
--- a/lib/libvarnish/vtcp.c
+++ b/lib/libvarnish/vtcp.c
@@ -152,7 +152,7 @@ VTCP_filter_http(int sock)
struct accept_filter_arg afa;
memset(&afa, 0, sizeof afa);
- bprintf(afa.af_name, "httpready");
+ bprintf(afa.af_name, "%s", "httpready");
errno = 0;
retval = setsockopt(sock, SOL_SOCKET, SO_ACCEPTFILTER,
&afa, sizeof afa);
More information about the varnish-commit
mailing list