From 67d0fa7008f599da39cd46839569d9d3feaba8b4 Mon Sep 17 00:00:00 2001 From: phk Date: Sat, 19 Jul 2008 11:50:09 +0000 Subject: [PATCH] Constify WS_Free() git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2965 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache.h | 2 +- varnish-cache/bin/varnishd/cache_ws.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.5