r4395 - trunk/varnish-cache/lib/libvcl
phk at projects.linpro.no
phk at projects.linpro.no
Tue Dec 15 12:55:07 CET 2009
Author: phk
Date: 2009-12-15 12:55:07 +0100 (Tue, 15 Dec 2009)
New Revision: 4395
Modified:
trunk/varnish-cache/lib/libvcl/vcc_backend.c
Log:
Add vgcname to host struct
Modified: trunk/varnish-cache/lib/libvcl/vcc_backend.c
===================================================================
--- trunk/varnish-cache/lib/libvcl/vcc_backend.c 2009-12-15 11:23:41 UTC (rev 4394)
+++ trunk/varnish-cache/lib/libvcl/vcc_backend.c 2009-12-15 11:55:07 UTC (rev 4395)
@@ -72,6 +72,7 @@
VTAILQ_ENTRY(host) list;
int hnum;
struct token *name;
+ char *vgcname;
};
static const char *
@@ -760,6 +761,8 @@
h->name = t_dir;
vcc_AddDef(tl, t_dir, R_BACKEND);
sprintf(vgcname, "VGC_backend__%.*s", PF(h->name));
+ h->vgcname = TlAlloc(tl, strlen(vgcname) + 1);
+ strcpy(h->vgcname, vgcname);
vcc_ParseHostDef(tl, &h->hnum, h->name, t_first, -1, vgcname);
ERRCHK(tl);
More information about the varnish-commit
mailing list