From: phk Date: Sat, 19 Jul 2008 11:50:09 +0000 (+0000) Subject: Constify WS_Free() X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67d0fa7008f599da39cd46839569d9d3feaba8b4;p=varnish Constify WS_Free() git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2965 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache.h b/varnish-cache/bin/varnishd/cache.h index 2b058d79..b5a0901d 100644 --- a/varnish-cache/bin/varnishd/cache.h +++ b/varnish-cache/bin/varnishd/cache.h @@ -602,7 +602,7 @@ void WS_Reset(struct ws *ws, char *p); char *WS_Alloc(struct ws *ws, unsigned bytes); char *WS_Dup(struct ws *ws, const char *); char *WS_Snapshot(struct ws *ws); -unsigned WS_Free(struct ws *ws); +unsigned WS_Free(const struct ws *ws); /* rfc2616.c */ int RFC2616_cache_policy(const struct sess *sp, const struct http *hp); diff --git a/varnish-cache/bin/varnishd/cache_ws.c b/varnish-cache/bin/varnishd/cache_ws.c index 431596c0..0f559293 100644 --- a/varnish-cache/bin/varnishd/cache_ws.c +++ b/varnish-cache/bin/varnishd/cache_ws.c @@ -130,7 +130,7 @@ WS_Dup(struct ws *ws, const char *s) } unsigned -WS_Free(struct ws *ws) +WS_Free(const struct ws *ws) { WS_Assert(ws);