[PATCH] Replace xalloc with malloc
Mikhail Gusarov
dottedmag at dottedmag.net
Wed Jun 16 11:41:39 PDT 2010
Twas brillig at 20:28:29 16.06.2010 UTC+02 when tom at dbservice.com did gyre and gimble:
TC> Same for xfree/xrealloc/xcalloc. Also, the return value from
TC> malloc/realloc/calloc doesn't require a cast, same for the
TC> argument of free(). Also remove if()'s that check if the
TC> pointer that is about to be passed to free() is NULL, since
TC> free(NULL) is allowed.
TC> Signed-off-by: Tomas Carnecky <tom at dbservice.com>
Reviewed-by: Mikhail Gusarov <dottedmag at dottedmag.net>
TC> -#define xcalloc(_num,_size) calloc(_num,_size)
At least here xcalloc had two args unlike server.
--
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/20100617/11ad5b58/attachment-0001.pgp>
More information about the xorg-devel
mailing list