r2424 - trunk/varnish-cache/lib/libvcl
phk at projects.linpro.no
phk at projects.linpro.no
Mon Feb 4 10:55:53 CET 2008
Author: phk
Date: 2008-02-04 10:55:53 +0100 (Mon, 04 Feb 2008)
New Revision: 2424
Modified:
trunk/varnish-cache/lib/libvcl/vcc_backend.c
Log:
Add X-ref definition of random directors.
Modified: trunk/varnish-cache/lib/libvcl/vcc_backend.c
===================================================================
--- trunk/varnish-cache/lib/libvcl/vcc_backend.c 2008-02-04 09:51:23 UTC (rev 2423)
+++ trunk/varnish-cache/lib/libvcl/vcc_backend.c 2008-02-04 09:55:53 UTC (rev 2424)
@@ -369,7 +369,7 @@
*/
static void
-vcc_ParseRandomDirector(struct tokenlist *tl, const struct token *t_first, const struct token *t_dir)
+vcc_ParseRandomDirector(struct tokenlist *tl, const struct token *t_first, struct token *t_dir)
{
struct token *t_field;
int nbh, nelem;
@@ -377,6 +377,7 @@
Fh(tl, 1, "\n#define VGC_backend_%.*s (VCL_conf.backend[%d])\n",
PF(t_dir), tl->nbackend);
+ vcc_AddDef(tl, t_dir, R_BACKEND);
fs = vcc_FldSpec(tl, "!backend", "?weight", NULL);
More information about the varnish-commit
mailing list