[master] 48ebe64 Cast the sockaddr_un correctly for use in connect(2).
Geoff Simmons
geoff at uplex.de
Fri Feb 16 11:36:05 UTC 2018
commit 48ebe64cf7f96603febf96d95636bdf745936f18
Author: Geoff Simmons <geoff at uplex.de>
Date: Fri Feb 16 12:30:16 2018 +0100
Cast the sockaddr_un correctly for use in connect(2).
diff --git a/bin/varnishtest/vtc_client.c b/bin/varnishtest/vtc_client.c
index 754d4ec..8db014c 100644
--- a/bin/varnishtest/vtc_client.c
+++ b/bin/varnishtest/vtc_client.c
@@ -149,7 +149,7 @@ uds_open(void *priv, const struct sockaddr_un *uds)
return (s);
(void) VTCP_nonblocking(s);
- i = connect(s, uds, sl);
+ i = connect(s, (const struct sockaddr *)uds, sl);
if (i == 0)
return(s);
if (errno != EINPROGRESS) {
More information about the varnish-commit
mailing list