]> err.no Git - varnish/commitdiff
Make this work again: record the stevedore in the storage object.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 26 Jun 2006 16:19:14 +0000 (16:19 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 26 Jun 2006 16:19:14 +0000 (16:19 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@236 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/storage_malloc.c

index 7f928e55f10e2c82513984c1b60aa227921c80d4..09dbec1e1135125905e9c11acd25466e2cc93bc3 100644 (file)
@@ -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);
 }