[master] 745a6e0 s/mcf_bad_vclname/mcf_invalid_vclname/
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Tue Jun 27 12:03:06 CEST 2017
commit 745a6e08905f05a5dda425b8aee20c12d7f7c6ef
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date: Tue Jun 27 10:50:58 2017 +0200
s/mcf_bad_vclname/mcf_invalid_vclname/
diff --git a/bin/varnishd/mgt/mgt_vcl.c b/bin/varnishd/mgt/mgt_vcl.c
index 59f2026..27ee0cb 100644
--- a/bin/varnishd/mgt/mgt_vcl.c
+++ b/bin/varnishd/mgt/mgt_vcl.c
@@ -114,7 +114,7 @@ mcf_vcl_byname(const char *name)
}
static int
-mcf_bad_vclname(struct cli *cli, const char *name)
+mcf_invalid_vclname(struct cli *cli, const char *name)
{
const char *p;
int bad = 0;
@@ -145,7 +145,7 @@ mcf_find_vcl(struct cli *cli, const char *name)
{
struct vclprog *vp;
- if (mcf_bad_vclname(cli, name))
+ if (mcf_invalid_vclname(cli, name))
return (NULL);
vp = mcf_vcl_byname(name);
@@ -160,7 +160,7 @@ static int
mcf_find_no_vcl(struct cli *cli, const char *name)
{
- if (mcf_bad_vclname(cli, name))
+ if (mcf_invalid_vclname(cli, name))
return (0);
if (mcf_vcl_byname(name) != NULL) {
@@ -791,9 +791,9 @@ mcf_vcl_label(struct cli *cli, const char * const *av, void *priv)
int i;
(void)priv;
- if (mcf_bad_vclname(cli, av[2]))
+ if (mcf_invalid_vclname(cli, av[2]))
return;
- if (mcf_bad_vclname(cli, av[3]))
+ if (mcf_invalid_vclname(cli, av[3]))
return;
vpt = mcf_find_vcl(cli, av[3]);
if (vpt == NULL)
More information about the varnish-commit
mailing list