r4825 - trunk/varnish-cache/bin/varnishd

phk at varnish-cache.org phk at varnish-cache.org
Wed May 19 10:19:22 CEST 2010


Author: phk
Date: 2010-05-19 10:19:21 +0200 (Wed, 19 May 2010)
New Revision: 4825

Modified:
   trunk/varnish-cache/bin/varnishd/cache_hash.c
   trunk/varnish-cache/bin/varnishd/hash_slinger.h
Log:
Constify arg to HSH_Ref()



Modified: trunk/varnish-cache/bin/varnishd/cache_hash.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_hash.c	2010-05-19 08:18:57 UTC (rev 4824)
+++ trunk/varnish-cache/bin/varnishd/cache_hash.c	2010-05-19 08:19:21 UTC (rev 4825)
@@ -595,7 +595,7 @@
 }
 
 void
-HSH_Ref(struct object *o)
+HSH_Ref(const struct object *o)
 {
 	struct objhead *oh;
 

Modified: trunk/varnish-cache/bin/varnishd/hash_slinger.h
===================================================================
--- trunk/varnish-cache/bin/varnishd/hash_slinger.h	2010-05-19 08:18:57 UTC (rev 4824)
+++ trunk/varnish-cache/bin/varnishd/hash_slinger.h	2010-05-19 08:19:21 UTC (rev 4825)
@@ -56,7 +56,7 @@
 void HSH_Freestore(struct object *o);
 struct objcore *HSH_Lookup(struct sess *sp, struct objhead **poh);
 void HSH_Unbusy(const struct sess *sp);
-void HSH_Ref(struct object *o);
+void HSH_Ref(const struct object *o);
 void HSH_Drop(struct sess *sp);
 double HSH_Grace(double g);
 void HSH_Init(void);




More information about the varnish-commit mailing list