At 10:15 AM 12/7/2004, Stas Bekman wrote:
>apr_brigade_cleanup looks wrong:
>
>APU_DECLARE(apr_status_t) apr_brigade_cleanup(void *data)
>{
> apr_bucket_brigade *b = data;
> apr_bucket *e;
>
>shouldn't it be:
>
> apr_bucket_brigade *b = (apr_bucket_brigade *)data;
>
>why does it have (void *data) argument? why is this inconsistent with:
>
> APU_DECLARE(apr_status_t) apr_brigade_destroy(apr_bucket_brigade *b);
>
>it seems to work fine on linux but on windows causes all kind of crashes.
It shouldn't - all ANSI C compilers should promote any void* type
to an appropriate foo* type silently and without any negative
consequences.
Is it possible you created a mis-aligned apr_bucket_brigade (not
on an appropriate word boundry?) What module is crashing? Is
this perl? C? C++?
Bill