You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@apache.org on 2003/09/09 20:24:43 UTC
cvs commit: httpd-2.0/modules/filters mod_include.c
trawick 2003/09/09 11:24:43
Modified: modules/filters mod_include.c
Log:
void * can't be used as a function pointer without casting
Revision Changes Path
1.286 +3 -2 httpd-2.0/modules/filters/mod_include.c
Index: mod_include.c
===================================================================
RCS file: /home/cvs/httpd-2.0/modules/filters/mod_include.c,v
retrieving revision 1.285
retrieving revision 1.286
diff -u -r1.285 -r1.286
--- mod_include.c 3 Sep 2003 19:27:04 -0000 1.285
+++ mod_include.c 9 Sep 2003 18:24:43 -0000 1.286
@@ -3471,8 +3471,9 @@
else {
include_handler_fn_t *handle_func;
- handle_func = apr_hash_get(include_handlers, intern->directive,
- intern->directive_len);
+ handle_func =
+ (include_handler_fn_t *)apr_hash_get(include_handlers, intern->directive,
+ intern->directive_len);
if (handle_func) {
DEBUG_INIT(ctx, f, pass_bb);
Re: cvs commit: httpd-2.0/modules/filters mod_include.c
Posted by Jeff Trawick <tr...@attglobal.net>.
André Malo wrote:
> * trawick@apache.org wrote:
>
>
>> Modified: modules/filters mod_include.c
>> Log:
>> void * can't be used as a function pointer without casting
>
>
> doh, really? Good to know ;-)
unfortunately this is one of a few common issues we hit from time to
time that gcc doesn't catch, at least with the flags we use with
--enable-maintainer-mode... maybe some experimentation in that area
would be useful
some of the vendor compilers puke with assigning void * to function *...
Re: cvs commit: httpd-2.0/modules/filters mod_include.c
Posted by André Malo <nd...@perlig.de>.
* trawick@apache.org wrote:
> Modified: modules/filters mod_include.c
> Log:
> void * can't be used as a function pointer without casting
doh, really? Good to know ;-)
Thanks, nd