From: phk Date: Mon, 4 Feb 2008 09:55:53 +0000 (+0000) Subject: Add X-ref definition of random directors. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=255c7528dfe4a9f896cbae3d15c51ff9962e2a8f;p=varnish Add X-ref definition of random directors. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2424 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/lib/libvcl/vcc_backend.c b/varnish-cache/lib/libvcl/vcc_backend.c index 7936112e..518d7eb5 100644 --- a/varnish-cache/lib/libvcl/vcc_backend.c +++ b/varnish-cache/lib/libvcl/vcc_backend.c @@ -369,7 +369,7 @@ vcc_ParseBackend(struct tokenlist *tl) */ 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 @@ vcc_ParseRandomDirector(struct tokenlist *tl, const struct token *t_first, const 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);