Commit a6cac2d9 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Remove unused "ip" from backend.

Make VCL_Load static, and give it a NULL check.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@661 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent ddd0e22d
......@@ -25,7 +25,6 @@
#define HTTP_HDR_RESPONSE 4
#define HTTP_HDR_FIRST 5
struct event_base;
struct cli;
struct sbuf;
struct sess;
......@@ -265,7 +264,6 @@ struct backend {
const char *vcl_name;
const char *hostname;
const char *portname;
unsigned ip;
struct addrinfo *addr;
struct addrinfo *last_addr;
......@@ -397,7 +395,6 @@ void RES_WriteObj(struct sess *sp);
void VCL_Init(void);
void VCL_Rel(struct VCL_conf *vc);
struct VCL_conf *VCL_Get(void);
int VCL_Load(const char *fn, const char *name, struct cli *cli);
#define VCL_RET_MAC(l,u,b,n)
#define VCL_MET_MAC(l,u,b) void VCL_##l##_method(struct sess *);
......
......@@ -92,7 +92,7 @@ vcl_find(const char *name)
return (NULL);
}
int
static int
VCL_Load(const char *fn, const char *name, struct cli *cli)
{
struct vcls *vcl;
......@@ -191,6 +191,11 @@ cli_func_config_discard(struct cli *cli, char **av, void *priv)
(void)av;
(void)priv;
vcl = vcl_find(av[2]);
if (vcl == NULL) {
cli_result(cli, CLIS_PARAM);
cli_out(cli, "VCL '%s' unknown", av[2]);
return;
}
if (vcl->discard) {
cli_result(cli, CLIS_PARAM);
cli_out(cli, "VCL %s already discarded", av[2]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment