[master] a4495e6 Cast to char* for GCC
Poul-Henning Kamp
phk at FreeBSD.org
Tue Aug 16 11:45:11 CEST 2016
commit a4495e6889e067ae273f828432a66005d42017d5
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Tue Aug 16 09:44:28 2016 +0000
Cast to char* for GCC
diff --git a/lib/libvcc/vcc_action.c b/lib/libvcc/vcc_action.c
index 7b9097e..200ba97 100644
--- a/lib/libvcc/vcc_action.c
+++ b/lib/libvcc/vcc_action.c
@@ -253,7 +253,6 @@ parse_return_vcl(struct vcc *tl)
return;
}
if (sym->eval_priv == NULL) {
-
VSB_printf(tl->fi, "%s VCL %.*s */\n",
VCC_INFO_PREFIX, PF(tl->t));
@@ -261,16 +260,16 @@ parse_return_vcl(struct vcc *tl)
sym->eval_priv = strdup(buf);
AN(sym->eval_priv);
- Fh(tl, 0, "static VCL_VCL %s;", sym->eval_priv);
+ Fh(tl, 0, "static VCL_VCL %s;", buf);
Fh(tl, 0, "\t/* VCL %.*s */\n", PF(tl->t));
p = New_IniFin(tl);
AN(p);
VSB_printf(p->ini, "\t%s = VRT_vcl_lookup(\"%.*s\");",
- sym->eval_priv, PF(tl->t));
+ buf, PF(tl->t));
}
Fb(tl, 1, "VRT_vcl_select(ctx, %s);\t/* %.*s */\n",
- sym->eval_priv, PF(tl->t));
+ (const char*)sym->eval_priv, PF(tl->t));
Fb(tl, 1, "VRT_handling(ctx, VCL_RET_VCL);\n");
Fb(tl, 1, "return (1);\n");
vcc_NextToken(tl);
More information about the varnish-commit
mailing list