Mailing List Archive

r2965 - trunk/varnish-cache/bin/varnishd
Author: phk
Date: 2008-07-19 13:50:09 +0200 (Sat, 19 Jul 2008)
New Revision: 2965

Modified:
trunk/varnish-cache/bin/varnishd/cache.h
trunk/varnish-cache/bin/varnishd/cache_ws.c
Log:
Constify WS_Free()



Modified: trunk/varnish-cache/bin/varnishd/cache.h
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache.h 2008-07-19 11:49:43 UTC (rev 2964)
+++ trunk/varnish-cache/bin/varnishd/cache.h 2008-07-19 11:50:09 UTC (rev 2965)
@@ -602,7 +602,7 @@
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);

Modified: trunk/varnish-cache/bin/varnishd/cache_ws.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_ws.c 2008-07-19 11:49:43 UTC (rev 2964)
+++ trunk/varnish-cache/bin/varnishd/cache_ws.c 2008-07-19 11:50:09 UTC (rev 2965)
@@ -130,7 +130,7 @@
}

unsigned
-WS_Free(struct ws *ws)
+WS_Free(const struct ws *ws)
{

WS_Assert(ws);