From 3f7f3deb6838c8e95b7e94c1fb0ca7f3205851c7 Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 26 Jun 2006 16:19:14 +0000 Subject: [PATCH] Make this work again: record the stevedore in the storage object. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@236 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/storage_malloc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/varnish-cache/bin/varnishd/storage_malloc.c b/varnish-cache/bin/varnishd/storage_malloc.c index 7f928e55..09dbec1e 100644 --- a/varnish-cache/bin/varnishd/storage_malloc.c +++ b/varnish-cache/bin/varnishd/storage_malloc.c @@ -16,7 +16,7 @@ struct sma { }; static struct storage * -sma_alloc(struct stevedore *st __unused, unsigned size) +sma_alloc(struct stevedore *st, unsigned size) { struct sma *sma; @@ -27,6 +27,7 @@ sma_alloc(struct stevedore *st __unused, unsigned size) assert(sma->s.ptr != NULL); sma->s.len = size; sma->s.space = size; + sma->s.stevedore = st; return (&sma->s); } -- 2.39.5