[PATCH 3/4] Replace deprecated bzero with memset
Mikhail Gusarov
dottedmag at dottedmag.net
Fri Jun 4 03:58:43 PDT 2010
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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20100604/8aad9baf/attachment.pgp>
More information about the xorg-devel
mailing list