X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fxmalloc.h;h=94f3aaaad0e842d148dacda434d4c038b1f7f556;hp=c094e7c9bda68045ee5e04e1e0f6cc558b2dfb51;hb=908d7a4bcee5adb7d4768499282cc83075d0332e;hpb=277e840a0f8e3ec8800cfe7407fe3c16000bc622 diff --git a/src/xmalloc.h b/src/xmalloc.h index c094e7c9..94f3aaaa 100644 --- a/src/xmalloc.h +++ b/src/xmalloc.h @@ -83,10 +83,10 @@ void debugging_free (void *, const char *, int); necessary in standard C, but Wget performs them anyway for the sake of pre-standard environments and possibly C++. */ -#define xnew(type) ((type *) xmalloc (sizeof (type))) -#define xnew0(type) ((type *) xmalloc0 (sizeof (type))) -#define xnew_array(type, len) ((type *) xmalloc ((len) * sizeof (type))) -#define xnew0_array(type, len) ((type *) xmalloc0 ((len) * sizeof (type))) +#define xnew(type) (xmalloc (sizeof (type))) +#define xnew0(type) (xmalloc0 (sizeof (type))) +#define xnew_array(type, len) (xmalloc ((len) * sizeof (type))) +#define xnew0_array(type, len) (xmalloc0 ((len) * sizeof (type))) #define alloca_array(type, size) ((type *) alloca ((size) * sizeof (type)))