[PATCH 3/4] Replace deprecated bzero with memset

Marcin Baczyński marbacz at gmail.com
Fri Jun 4 04:11:05 PDT 2010


Reviewed-by: Marcin Baczyński <marbacz at gmail.com>

W dniu 4 czerwca 2010 12:58 użytkownik Mikhail Gusarov
<dottedmag at dottedmag.net> napisał:
>
> Twas brillig at 12:40:30 04.06.2010 UTC+02 when marbacz at gmail.com did gyre and gimble:
>
>  >> -    bzero ((char *) pmap->red, (int)sizebytes);
>  >> -    bzero((char *) pmap->numPixelsRed, MAXCLIENTS * sizeof(int));
>  >> +    memset((char *) pmap->red, 0, (int)sizebytes);
>  >> +    memset((char *) pmap->numPixelsRed, 0, MAXCLIENTS * sizeof(int));
>
>  MB> Aren't these char * casts superfluous?
>
> They are and they hide errors, but that's the topic for another cleanup
> patch.
>
> --
>  http://fossarchy.blogspot.com/
>


More information about the xorg-devel mailing list