diff options
author | jwoolley <jwoolley@13f79535-47bb-0310-9956-ffa450edef68> | 2001-08-08 05:58:15 +0000 |
---|---|---|
committer | jwoolley <jwoolley@13f79535-47bb-0310-9956-ffa450edef68> | 2001-08-08 05:58:15 +0000 |
commit | 75388a9570ee8f6676af1b2afa3118f626fbacdf (patch) | |
tree | d63fdcd41ad52ab31970ba55ab3c41f237cf0171 /buckets/apr_buckets_mmap.c | |
parent | 78a82ddb3c399361a8a2517a9b537371bbacd528 (diff) | |
download | libapr-util-75388a9570ee8f6676af1b2afa3118f626fbacdf.tar.gz |
Move the free function pointer out of the apr_bucket_type_t and into the
apr_bucket struct itself, because the free() function operates on the
apr_bucket and not the bucket's private data [which might change if we morph].
git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58357 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'buckets/apr_buckets_mmap.c')
-rw-r--r-- | buckets/apr_buckets_mmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buckets/apr_buckets_mmap.c b/buckets/apr_buckets_mmap.c index 7aa4b5a3..c8eebfcc 100644 --- a/buckets/apr_buckets_mmap.c +++ b/buckets/apr_buckets_mmap.c @@ -113,6 +113,7 @@ APU_DECLARE(apr_bucket *) apr_bucket_mmap_create( apr_bucket *b = (apr_bucket *)malloc(sizeof(*b)); APR_BUCKET_INIT(b); + b->free = free; return apr_bucket_mmap_make(b, mm, start, length); } @@ -144,7 +145,6 @@ static apr_status_t mmap_setaside(apr_bucket *data, apr_pool_t *p) APU_DECLARE_DATA const apr_bucket_type_t apr_bucket_type_mmap = { "MMAP", 5, mmap_destroy, - free, mmap_read, mmap_setaside, apr_bucket_shared_split, |