X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=xmalloc.h;h=3766043df0203473c303947ecbbe60dc88d49738;hb=40fe452223b5cc0ff5dbae0efa8551d7e96c1a5c;hp=818358285033195e1033b222188508468a32bb0a;hpb=eec588b0b2d77eb2fe6d441efb6ab66ed538bedf;p=~andy%2Ffetchmail diff --git a/xmalloc.h b/xmalloc.h index 81835828..3766043d 100644 --- a/xmalloc.h +++ b/xmalloc.h @@ -6,17 +6,12 @@ #include "config.h" /* xmalloc.c */ -#if defined(HAVE_VOIDPOINTER) -#define XMALLOCTYPE void -#else -#define XMALLOCTYPE char -#endif /** Allocate \a n characters of memory, abort program on failure. */ -XMALLOCTYPE *xmalloc(size_t n); +void *xmalloc(size_t n); /** Reallocate \a n characters of memory, abort program on failure. */ -XMALLOCTYPE *xrealloc(/*@null@*/ XMALLOCTYPE *, size_t n); +void *xrealloc(/*@null@*/ void *, size_t n); /** Free memory at position \a p and set pointer \a p to NULL afterwards. */ #define xfree(p) { if (p) { free(p); } (p) = 0; }