diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-03-13 09:04:47 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-03-13 09:04:47 +0000 |
commit | 346f865bc9d1a8492df260378c038f247e99d95a (patch) | |
tree | 39fd8c9b83debab725206176f99b9d1d2709c7f3 /fetchmail.h | |
parent | 7c9a0061dc06deb11db47e349610fb607c665af8 (diff) | |
download | fetchmail-346f865bc9d1a8492df260378c038f247e99d95a.tar.gz fetchmail-346f865bc9d1a8492df260378c038f247e99d95a.tar.bz2 fetchmail-346f865bc9d1a8492df260378c038f247e99d95a.zip |
Deal with non-void malloc type.
svn path=/trunk/; revision=927
Diffstat (limited to 'fetchmail.h')
-rw-r--r-- | fetchmail.h | 14 |
1 files changed, 10 insertions, 4 deletions
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 |