[master] 662a552 Constify

Poul-Henning Kamp phk at FreeBSD.org
Tue Apr 17 22:33:14 UTC 2018


commit 662a552d6a2884d227ae513b3b0367710bb29ee3
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Apr 17 22:28:32 2018 +0000

    Constify

diff --git a/bin/varnishd/cache/cache.h b/bin/varnishd/cache/cache.h
index e1d835f..02d0420 100644
--- a/bin/varnishd/cache/cache.h
+++ b/bin/varnishd/cache/cache.h
@@ -388,7 +388,7 @@ struct busyobj {
 	struct worker		*wrk;
 
 	struct vfp_ctx		*vfc;
-	char			*filter_list;
+	const char		*filter_list;
 
 	struct ws		ws[1];
 	uintptr_t		ws_bo;
@@ -751,7 +751,7 @@ unsigned WS_Reserve(struct ws *ws, unsigned bytes);
 unsigned WS_ReserveLumps(struct ws *ws, size_t sz);
 void WS_MarkOverflow(struct ws *ws);
 void WS_Release(struct ws *ws, unsigned bytes);
-void WS_ReleaseP(struct ws *ws, char *ptr);
+void WS_ReleaseP(struct ws *ws, const char *ptr);
 void WS_Assert(const struct ws *ws);
 void WS_Reset(struct ws *ws, uintptr_t);
 void *WS_Alloc(struct ws *ws, unsigned bytes);
diff --git a/bin/varnishd/cache/cache_ws.c b/bin/varnishd/cache/cache_ws.c
index a58f657..3ec5ec0 100644
--- a/bin/varnishd/cache/cache_ws.c
+++ b/bin/varnishd/cache/cache_ws.c
@@ -275,7 +275,7 @@ WS_Release(struct ws *ws, unsigned bytes)
 }
 
 void
-WS_ReleaseP(struct ws *ws, char *ptr)
+WS_ReleaseP(struct ws *ws, const char *ptr)
 {
 	WS_Assert(ws);
 	DSL(DBG_WORKSPACE, 0, "WS_ReleaseP(%p, %p (%zd))", ws, ptr, ptr - ws->f);


More information about the varnish-commit mailing list