Mailing List Archive

[master] 31ab68818 vcc: Avoid magic indentation numbers
commit 31ab68818f1dbbb0ff615e2c868fa4cbab457da8
Author: Dridi Boukelmoune <dridi.boukelmoune@gmail.com>
Date: Wed Jan 5 19:24:19 2022 +0100

vcc: Avoid magic indentation numbers

diff --git a/lib/libvcc/vcc_expr.c b/lib/libvcc/vcc_expr.c
index 1b5926499..c4e0380b8 100644
--- a/lib/libvcc/vcc_expr.c
+++ b/lib/libvcc/vcc_expr.c
@@ -253,8 +253,8 @@ vcc_expr_fmt(struct vsb *d, int ind, const struct expr *e1)
VSB_putc(d, *p++);
} else {
switch (*++p) {
- case '+': ind += 2; break;
- case '-': ind -= 2; break;
+ case '+': ind += INDENT; break;
+ case '-': ind -= INDENT; break;
default: WRONG("Illegal format in VCC expression");
}
p++;
_______________________________________________
varnish-commit mailing list
varnish-commit@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-commit