Red Hat Bugzilla – Bug 170401
Header bug fogotten casting
Last modified: 2007-11-30 17:11:15 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.12) Gecko/20050919 Firefox/1.0.7
Description of problem:
The libapreq2 headers contains a bug:
/usr/include/apreq2/apreq_util.h:197: error: invalid conversion from 'void*' to 'char*'
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Small C program with including apreq_util.h
< rv = apr_palloc(p, 3 * slen + 1);
> rv = (char *)apr_palloc(p, 3 * slen + 1);
Reproduced, appears to happen only when using a c++ compiler though. Will
report upstream; AFAIK 2.07 will be out real soon now, hopefully this makes it
in time for that. Thanks!
The patch is included in upstream 2.07-rc2. I've updated devel to it, but
will wait for 2.07 final for FC4.
Fixed 13 Feb 2006 by Bojan.