[master] 3e98f98 Another constification.

Poul-Henning Kamp phk at varnish-cache.org
Mon May 16 15:35:02 CEST 2011


commit 3e98f982533c2beea628aff1d2b2885842a02aa3
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon May 16 13:34:55 2011 +0000

    Another constification.

diff --git a/bin/varnishd/cache_ban.c b/bin/varnishd/cache_ban.c
index 53073e9..1fa569a 100644
--- a/bin/varnishd/cache_ban.c
+++ b/bin/varnishd/cache_ban.c
@@ -257,7 +257,7 @@ ban_iter(const uint8_t **bs, struct ban_test *bt)
 	memset(bt, 0, sizeof *bt);
 	bt->arg1 = *(*bs)++;
 	if (bt->arg1 == BAN_ARG_REQHTTP || bt->arg1 == BAN_ARG_OBJHTTP) {
-		bt->arg1_spec = (char *)*bs;
+		bt->arg1_spec = (const char *)*bs;
 		(*bs) += (*bs)[0] + 2;
 	}
 	bt->arg2 = ban_get_lump(bs);



More information about the varnish-commit mailing list