[master] 97adb56 Make the compiled vcl a tad less confusing

Poul-Henning Kamp phk at FreeBSD.org
Mon Jan 19 13:57:08 CET 2015


commit 97adb56bf242f6b92b9f2e07c36f81fdf4da7f02
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Jan 19 12:39:31 2015 +0000

    Make the compiled vcl a tad less confusing

diff --git a/lib/libvcc/vcc_utils.c b/lib/libvcc/vcc_utils.c
index bfcc2d5..f5908ad 100644
--- a/lib/libvcc/vcc_utils.c
+++ b/lib/libvcc/vcc_utils.c
@@ -111,7 +111,7 @@ vcc_sockaddr(struct vcc *tl, const void *sa, unsigned sal)
 	AN(sua);
 
 	Fh(tl, 0, "static const unsigned long long");
-	Fh(tl, 0, " sockaddr_%u[%d] = {\n", tl->unique, n);
+	Fh(tl, 0, " suckaddr_%u[%d] = {\n", tl->unique, n);
 	memcpy(b, sua, vsa_suckaddr_len);
 	free(sua);
 	for (len = 0; len < n; len++)
@@ -121,7 +121,7 @@ vcc_sockaddr(struct vcc *tl, const void *sa, unsigned sal)
 
 	p = TlAlloc(tl, 40);
 	AN(p);
-	sprintf(p, "(const void*)sockaddr_%u", tl->unique);
+	sprintf(p, "(const void*)suckaddr_%u", tl->unique);
 
 	tl->unique++;
 	return (p);



More information about the varnish-commit mailing list