[master] f12e24e Remove extra whitespace in generated C code.
Lasse Karstensen
lkarsten at varnish-software.com
Tue May 5 16:10:41 CEST 2015
commit f12e24ef3bf63193e5cf1d250046698db3329775
Author: Lasse Karstensen <lkarsten at varnish-software.com>
Date: Tue May 5 16:08:55 2015 +0200
Remove extra whitespace in generated C code.
diff --git a/lib/libvcc/vcc_compile.c b/lib/libvcc/vcc_compile.c
index f651ed7..4717148 100644
--- a/lib/libvcc/vcc_compile.c
+++ b/lib/libvcc/vcc_compile.c
@@ -348,7 +348,7 @@ EmitInitFini(const struct vcc *tl)
Fc(tl, 0, "\t\treturn(VGC_Load(ctx));\n");
Fc(tl, 0, "\tif (ev == VCL_EVENT_DISCARD)\n");
Fc(tl, 0, "\t\treturn(VGC_Discard(ctx));\n");
- Fc(tl, 0, "\t\n");
+ Fc(tl, 0, "\n");
VTAILQ_FOREACH(p, &tl->inifin, list) {
AZ(VSB_finish(p->event));
if (VSB_len(p->event))
diff --git a/lib/libvcc/vcc_var.c b/lib/libvcc/vcc_var.c
index 74713b8..0fd45ec 100644
--- a/lib/libvcc/vcc_var.c
+++ b/lib/libvcc/vcc_var.c
@@ -78,7 +78,7 @@ vcc_Var_Wildcard(struct vcc *tl, const struct token *t, const struct symbol *wc)
bprintf(buf, "&VGC_%s_%s", vh->rname, cnam);
v->rname = TlDup(tl, buf);
- bprintf(buf, "VRT_SetHdr(ctx, %s, ", v->rname);
+ bprintf(buf, "VRT_SetHdr(ctx, %s,", v->rname);
v->lname = TlDup(tl, buf);
sym = VCC_AddSymbolTok(tl, t, SYM_VAR);
More information about the varnish-commit
mailing list