[master] 45faed232 vcc_types: Use VCL_{LOW,HIGH} for default symbols

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Tue Sep 24 07:58:04 UTC 2024


commit 45faed23247471b392359dc66f26e131510fc15b
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Tue Sep 24 09:54:40 2024 +0200

    vcc_types: Use VCL_{LOW,HIGH} for default symbols
    
    I shouldn't have picked the magic values from vmodtool.py in the first
    place.
    
    Refs #4190

diff --git a/lib/libvcc/vcc_types.c b/lib/libvcc/vcc_types.c
index ff0b4e4d4..3a3c1dd21 100644
--- a/lib/libvcc/vcc_types.c
+++ b/lib/libvcc/vcc_types.c
@@ -70,8 +70,8 @@ static const struct vcc_method backend_methods[] = {
 static struct symbol default_backend[1] = {{
 	.magic =		SYMBOL_MAGIC,
 	.name =			"default",
-	.lorev =		0,
-	.hirev =		99,
+	.lorev =		VCL_LOW,
+	.hirev =		VCL_HIGH,
 	.kind =			SYM_BACKEND,
 	.type =			DEFAULT,
 	.rname =		"*(VCL_conf.default_director)",
@@ -163,8 +163,8 @@ const struct type IP[1] = {{
 static struct symbol default_probe[1] = {{
 	.magic =		SYMBOL_MAGIC,
 	.name =			"default",
-	.lorev =		0,
-	.hirev =		99,
+	.lorev =		VCL_LOW,
+	.hirev =		VCL_HIGH,
 	.kind =			SYM_PROBE,
 	.type =			DEFAULT,
 	.rname =		"vgc_probe_default",


More information about the varnish-commit mailing list