[prev in list] [next in list] [prev in thread] [next in thread]
List: varnish-commit
Subject: r4395 - trunk/varnish-cache/lib/libvcl
From: phk () projects ! linpro ! no (phk at projects ! linpro ! no)
Date: 2009-12-15 11:55:07
Message-ID: 20091215115507.D4ADC1F72E4 () projects ! linpro ! no
[Download RAW message or body]
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);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic