From: phk Date: Mon, 26 Jun 2006 16:19:14 +0000 (+0000) Subject: Make this work again: record the stevedore in the storage object. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f7f3deb6838c8e95b7e94c1fb0ca7f3205851c7;p=varnish 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 --- 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); }