[master] 372093f5a Minor flexelinting

Poul-Henning Kamp phk at FreeBSD.org
Tue Sep 5 11:27:08 UTC 2023


commit 372093f5a7813031860aaadb0323289037a4235a
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Sep 5 11:26:17 2023 +0000

    Minor flexelinting

diff --git a/lib/libvarnish/vte.c b/lib/libvarnish/vte.c
index 3ebf57086..c97a95441 100644
--- a/lib/libvarnish/vte.c
+++ b/lib/libvarnish/vte.c
@@ -263,7 +263,7 @@ VTE_format(const struct vte *vte, VTE_format_f *func, void *priv)
 		if (*p == '\v') {
 			if (p - 1 > q) { /* exclude previous separator */
 				VTE_FORMAT(func, priv, "%.*s%s",
-				    (int)(p - 1 - q), q, sep);
+				    (int)((p - 1) - q), q, sep);
 			}
 			q = ++p;
 			just_left = 1;
diff --git a/lib/libvcc/vcc_compile.h b/lib/libvcc/vcc_compile.h
index 369c66daa..acd997281 100644
--- a/lib/libvcc/vcc_compile.h
+++ b/lib/libvcc/vcc_compile.h
@@ -456,7 +456,7 @@ char *vcc_Dup_be(const char *b, const char *e);
 int vcc_Has_vcl_prefix(const char *b);
 
 /* vcc_var.c */
-void vcc_Header_Fh(struct vcc *, struct symbol *);
+void vcc_Header_Fh(const struct vcc *, const struct symbol *);
 sym_wildcard_t vcc_Var_Wildcard;
 
 /* vcc_vmod.c */
diff --git a/lib/libvcc/vcc_var.c b/lib/libvcc/vcc_var.c
index 7292924ae..643af2f1e 100644
--- a/lib/libvcc/vcc_var.c
+++ b/lib/libvcc/vcc_var.c
@@ -41,7 +41,7 @@
 /*--------------------------------------------------------------------*/
 
 void
-vcc_Header_Fh(struct vcc *tl, struct symbol *sym)
+vcc_Header_Fh(const struct vcc *tl, const struct symbol *sym)
 {
 	const struct symbol *parent;
 


More information about the varnish-commit mailing list