Mod Snake CVS committal
Author : jick
Project : mod_snake
Module : src
Dir : mod_snake/src
Modified Files:
mod_snake_bucket.c
Log Message:
Get the bucket code up-to-date with Apache 2.0 changes.
===================================================================
RCS file: /cvsroot/modsnake/mod_snake/src/mod_snake_bucket.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- mod_snake_bucket.c 2001/04/30 14:29:43 1.9
+++ mod_snake_bucket.c 2002/01/10 18:55:58 1.10
@@ -52,7 +52,7 @@
ModSnakePyBucket *pybucket = data;
/* Check to see if the reference count is up */
- if(apr_bucket_shared_destroy(pybucket))
+ if(!apr_bucket_shared_destroy(pybucket))
return;
Py_DECREF(pybucket->py_str);
@@ -60,10 +60,10 @@
}
static const apr_bucket_type_t mod_snake_bucket_type = {
- "ModSnake Bucket", 4,
+ "ModSnake Bucket", 5,
mod_snake_pybucket_destroy,
mod_snake_pybucket_read,
- apr_bucket_setaside_notimpl,
+ apr_bucket_setaside_noop,
apr_bucket_shared_split,
apr_bucket_shared_copy,
};
@@ -94,6 +94,7 @@
apr_bucket *b = calloc(1, sizeof(*b));
APR_BUCKET_INIT(b);
+ b->free = free;
return mod_snake_pybucket_make(b, strobj, offset, len);
}
|