[master] 31ab68818 vcc: Avoid magic indentation numbers

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Wed Jan 5 18:31:05 UTC 2022


commit 31ab68818f1dbbb0ff615e2c868fa4cbab457da8
Author: Dridi Boukelmoune <dridi.boukelmoune at 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++;


More information about the varnish-commit mailing list