[master] f43b3ab Constify

Poul-Henning Kamp phk at FreeBSD.org
Wed Feb 25 11:37:34 CET 2015


commit f43b3abaf0aa5cccb2f0880b684a30fdbd61d672
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Wed Feb 25 10:27:07 2015 +0000

    Constify

diff --git a/bin/varnishd/common/common.h b/bin/varnishd/common/common.h
index 006df7a..de8d60c 100644
--- a/bin/varnishd/common/common.h
+++ b/bin/varnishd/common/common.h
@@ -121,7 +121,7 @@ void VSM_common_free(struct vsm_sc *sc, void *ptr);
 void VSM_common_delete(struct vsm_sc **sc);
 void VSM_common_copy(struct vsm_sc *to, const struct vsm_sc *from);
 void VSM_common_cleaner(struct vsm_sc *sc, struct VSC_C_main *stats);
-void VSM_common_ageupdate(struct vsm_sc *sc);
+void VSM_common_ageupdate(const struct vsm_sc *sc);
 
 /*---------------------------------------------------------------------
  * Generic power-2 rounding macros
diff --git a/bin/varnishd/common/common_vsm.c b/bin/varnishd/common/common_vsm.c
index 90863c3..9d4863e 100644
--- a/bin/varnishd/common/common_vsm.c
+++ b/bin/varnishd/common/common_vsm.c
@@ -384,7 +384,7 @@ VSM_common_copy(struct vsm_sc *to, const struct vsm_sc *from)
  */
 
 void
-VSM_common_ageupdate(struct vsm_sc *sc)
+VSM_common_ageupdate(const struct vsm_sc *sc)
 {
 
 	CHECK_OBJ_NOTNULL(sc, VSM_SC_MAGIC);



More information about the varnish-commit mailing list