apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@rowe-clan.net>
Subject Re: broken apr_brigade_cleanup?
Date Tue, 07 Dec 2004 16:42:40 GMT
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

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++?


View raw message