[master] b037fa8b2 Constify

Poul-Henning Kamp phk at FreeBSD.org
Wed Mar 24 10:06:05 UTC 2021


commit b037fa8b20896c67b0e90a930cc22996d5e266cd
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Wed Mar 24 09:53:38 2021 +0000

    Constify

diff --git a/lib/libvcc/vcc_acl.c b/lib/libvcc/vcc_acl.c
index e3720ccf9..9ef9a19d3 100644
--- a/lib/libvcc/vcc_acl.c
+++ b/lib/libvcc/vcc_acl.c
@@ -68,9 +68,9 @@ struct acl_e {
 	} while (0)
 
 static int
-vcl_acl_cmp(struct acl_e *ae1, struct acl_e *ae2)
+vcl_acl_cmp(const struct acl_e *ae1, const struct acl_e *ae2)
 {
-	unsigned char *p1, *p2;
+	const unsigned char *p1, *p2;
 	unsigned m;
 
 	p1 = ae1->data;
@@ -428,7 +428,7 @@ vcc_acl_emit(struct vcc *tl, const char *name, const char *rname)
 	int depth, l, m, i;
 	unsigned at[ACL_MAXADDR];
 	struct token *t;
-	struct inifin *ifp;
+	struct inifin *ifp = NULL;
 	struct vsb *func;
 
 	func = VSB_new_auto();


More information about the varnish-commit mailing list