r2020 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Tue Sep 25 09:11:33 CEST 2007


Author: phk
Date: 2007-09-25 09:11:33 +0200 (Tue, 25 Sep 2007)
New Revision: 2020

Modified:
   trunk/varnish-cache/bin/varnishd/cache.h
   trunk/varnish-cache/bin/varnishd/cache_hash.c
   trunk/varnish-cache/bin/varnishd/cache_http.c
   trunk/varnish-cache/bin/varnishd/stevedore.c
Log:
More const polishing


Modified: trunk/varnish-cache/bin/varnishd/cache.h
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache.h	2007-09-25 07:08:07 UTC (rev 2019)
+++ trunk/varnish-cache/bin/varnishd/cache.h	2007-09-25 07:11:33 UTC (rev 2020)
@@ -437,7 +437,7 @@
 /* cache_hash.c */
 void HSH_Prealloc(const struct sess *sp);
 int HSH_Compare(const struct sess *sp, const struct objhead *o);
-void HSH_Copy(struct sess *sp, const struct objhead *o);
+void HSH_Copy(const struct sess *sp, const struct objhead *o);
 struct object *HSH_Lookup(struct sess *sp);
 void HSH_Unbusy(struct object *o);
 void HSH_Ref(struct object *o);
@@ -465,7 +465,7 @@
 int http_GetStatus(const struct http *hp);
 const char *http_GetReq(const struct http *hp);
 const char *http_GetProto(const struct http *hp);
-int http_HdrIs(struct http *hp, const char *hdr, const char *val);
+int http_HdrIs(const struct http *hp, const char *hdr, const char *val);
 int http_GetTail(struct http *hp, unsigned len, char **b, char **e);
 int http_Read(struct http *hp, int fd, void *b, unsigned len);
 void http_RecvPrep(struct http *hp);

Modified: trunk/varnish-cache/bin/varnishd/cache_hash.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_hash.c	2007-09-25 07:08:07 UTC (rev 2019)
+++ trunk/varnish-cache/bin/varnishd/cache_hash.c	2007-09-25 07:11:33 UTC (rev 2020)
@@ -138,7 +138,7 @@
 }
 
 void
-HSH_Copy(struct sess *sp, const struct objhead *obj)
+HSH_Copy(const struct sess *sp, const struct objhead *obj)
 {
 	unsigned u, v;
 	char *b;

Modified: trunk/varnish-cache/bin/varnishd/cache_http.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_http.c	2007-09-25 07:08:07 UTC (rev 2019)
+++ trunk/varnish-cache/bin/varnishd/cache_http.c	2007-09-25 07:11:33 UTC (rev 2020)
@@ -304,7 +304,7 @@
 /*--------------------------------------------------------------------*/
 
 int
-http_HdrIs(struct http *hp, const char *hdr, const char *val)
+http_HdrIs(const struct http *hp, const const char *hdr, const char *val)
 {
 	char *p;
 

Modified: trunk/varnish-cache/bin/varnishd/stevedore.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/stevedore.c	2007-09-25 07:08:07 UTC (rev 2019)
+++ trunk/varnish-cache/bin/varnishd/stevedore.c	2007-09-25 07:11:33 UTC (rev 2020)
@@ -92,7 +92,7 @@
 }
 
 static int
-cmp_storage(const struct stevedore *s, const const char *p, const char *q)
+cmp_storage(const struct stevedore *s, const char *p, const char *q)
 {
 	if (strlen(s->name) != q - p)
 		return (1);




More information about the varnish-commit mailing list