Bug 170401

Summary: Header bug fogotten casting
Product: [Fedora] Fedora Reporter: Dirk Nehring <dnehring>
Component: libapreq2Assignee: Bojan Smojver <bojan>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 4CC: extras-qa
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 2.07-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-01-01 21:14:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dirk Nehring 2005-10-11 11:13:09 UTC
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):
2.06-2.fc4

How reproducible:
Always

Steps to Reproduce:
1. Small C program with including apreq_util.h
2.
3.
  

Additional info:

Patch:

<     rv = apr_palloc(p, 3 * slen + 1);
>     rv = (char *)apr_palloc(p, 3 * slen + 1);

Comment 1 Ville Skyttä 2005-10-11 17:52:06 UTC
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!  

Comment 2 Ville Skyttä 2005-10-15 09:10:10 UTC
The patch is included in upstream 2.07-rc2.  I've updated devel to it, but 
will wait for 2.07 final for FC4. 

Comment 3 Ville Skyttä 2007-01-01 21:14:06 UTC
Fixed 13 Feb 2006 by Bojan.