From 346f865bc9d1a8492df260378c038f247e99d95a Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 13 Mar 1997 09:04:47 +0000 Subject: Deal with non-void malloc type. svn path=/trunk/; revision=927 --- fetchmail.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'fetchmail.h') diff --git a/fetchmail.h b/fetchmail.h index 063b2a16..f1edb8d7 100644 --- a/fetchmail.h +++ b/fetchmail.h @@ -197,10 +197,6 @@ void gen_send (); int gen_transact (); #endif -void *xmalloc(int); -void *xrealloc(void *, int); -char *xstrdup(const char *); - int do_protocol(struct query *, const struct method *); int doPOP2 (struct query *); int doPOP3 (struct query *); @@ -243,6 +239,16 @@ void escapes(const char *, char *); void yyerror(const char *); int yylex(void); +#if defined(HAVE_VOIDPOINTER) +#define XMALLOCTYPE void +#else +#define XMALLOCTYPE char +#endif + +XMALLOCTYPE *xmalloc(int); +XMALLOCTYPE *xrealloc(XMALLOCTYPE *, int); +char *xstrdup(const char *); + #define FALSE 0 #define TRUE 1 -- cgit v1.2.3