[master] 5550d12 Make VSA_Get_Sockaddr() return a const void*, since we don't know what sockaddr-hack it is destined for.
Poul-Henning Kamp
phk at FreeBSD.org
Thu Apr 7 10:51:04 CEST 2016
commit 5550d1236547e13f03d1984058ad2427c76c50e9
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Thu Apr 7 08:44:57 2016 +0000
Make VSA_Get_Sockaddr() return a const void*, since we don't know
what sockaddr-hack it is destined for.
diff --git a/include/vsa.h b/include/vsa.h
index 185be03..e692003 100644
--- a/include/vsa.h
+++ b/include/vsa.h
@@ -38,7 +38,7 @@ unsigned VSA_Port(const struct suckaddr *);
int VSA_Compare(const struct suckaddr *, const struct suckaddr *);
struct suckaddr *VSA_Clone(const struct suckaddr *sua);
-const struct sockaddr *VSA_Get_Sockaddr(const struct suckaddr *, socklen_t *sl);
+const void *VSA_Get_Sockaddr(const struct suckaddr *, socklen_t *sl);
int VSA_Get_Proto(const struct suckaddr *);
/*
diff --git a/lib/libvarnish/vsa.c b/lib/libvarnish/vsa.c
index 43d9a86..4809dfe 100644
--- a/lib/libvarnish/vsa.c
+++ b/lib/libvarnish/vsa.c
@@ -265,7 +265,7 @@ VSA_Build(void *d, const void *s, unsigned sal)
return (NULL);
}
-const struct sockaddr *
+const void *
VSA_Get_Sockaddr(const struct suckaddr *sua, socklen_t *sl)
{
More information about the varnish-commit
mailing list