Re: [PATCH] [Request for inclusion] Filesystem in Userspace

Jan Engelhardt
2004-11-16T12:31:19Z

>> The have been
>> patches to get rid of the existing casts so please don't introduce new
>> ones.
>
>I vote for explicit casts, makes code more readable.

And makes it more error prone. Once upon a time, a user wrote:

ptr = (int *)malloc(...)

And justified the use of the cast because gcc generated a warning, and I
replied that if he'd included <stdlib.h> (yeah, user space), the warning would
be gone, even without a cast. Sigh.

Jan Engelhardt
--
Gesellschaft fÃ¼r Wissenschaftliche Datenverarbeitung
Am Fassberg, 37077 GÃ¶ttingen, www.gwdg.de