httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Malo ...@perlig.de>
Subject Re: cvs commit: httpd-2.0/support ab.c
Date Thu, 03 Jul 2003 18:28:32 GMT
* Sander Striker wrote:

>> From: Sander Temme [mailto:sctemme@covalent.net]
>> Sent: Thursday, July 03, 2003 7:02 PM
> 
>> on 7/3/03 9:07, nd@apache.org at nd@apache.org wrote:
>>
>>> -    char *buff = (char *) malloc(postlen + reqlen + 1);
>>> +    char *buff = malloc(postlen + reqlen + 1);
>>
>> Whyfor did you get rid of the cast? This may give you compiler warnings on
>> some platforms.
> 
> Only with broken compilers.  You don't need to cast from void * with C.

And further a cast may *hide* a useful warning (if malloc isn't
prototyped).

nd

Mime
View raw message