From: phk Date: Tue, 25 Sep 2007 07:11:33 +0000 (+0000) Subject: More const polishing X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98ccee453bad2221920cd7e81b6967774bb99c9c;p=varnish More const polishing git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2020 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache.h b/varnish-cache/bin/varnishd/cache.h index 9c98ec36..c3b21c5d 100644 --- a/varnish-cache/bin/varnishd/cache.h +++ b/varnish-cache/bin/varnishd/cache.h @@ -437,7 +437,7 @@ int Fetch(struct sess *sp); /* 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_GetHdrField(const struct http *hp, const char *hdr, const char *field, 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); diff --git a/varnish-cache/bin/varnishd/cache_hash.c b/varnish-cache/bin/varnishd/cache_hash.c index 27c17923..5c697787 100644 --- a/varnish-cache/bin/varnishd/cache_hash.c +++ b/varnish-cache/bin/varnishd/cache_hash.c @@ -138,7 +138,7 @@ HSH_Compare(const struct sess *sp, const struct objhead *obj) } 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; diff --git a/varnish-cache/bin/varnishd/cache_http.c b/varnish-cache/bin/varnishd/cache_http.c index 7dbc63e2..b009c6d6 100644 --- a/varnish-cache/bin/varnishd/cache_http.c +++ b/varnish-cache/bin/varnishd/cache_http.c @@ -304,7 +304,7 @@ http_DoConnection(struct sess *sp) /*--------------------------------------------------------------------*/ 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; diff --git a/varnish-cache/bin/varnishd/stevedore.c b/varnish-cache/bin/varnishd/stevedore.c index c54db3b8..132d54cd 100644 --- a/varnish-cache/bin/varnishd/stevedore.c +++ b/varnish-cache/bin/varnishd/stevedore.c @@ -92,7 +92,7 @@ STV_free(struct storage *st) } 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);