aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2002-06-07 13:28:37 +0000
committerEric S. Raymond <esr@thyrsus.com>2002-06-07 13:28:37 +0000
commit52b3a2412b177e8f3acb56234bd98dc2810dc682 (patch)
treedec8fdf13124e5335012a0bc70ae64ec64a93b82 /fetchmail.h
parent354fa788cda62c39386d4282b99348256958093e (diff)
downloadfetchmail-52b3a2412b177e8f3acb56234bd98dc2810dc682.tar.gz
fetchmail-52b3a2412b177e8f3acb56234bd98dc2810dc682.tar.bz2
fetchmail-52b3a2412b177e8f3acb56234bd98dc2810dc682.zip
xmalloc type cleanup.
svn path=/trunk/; revision=3636
Diffstat (limited to 'fetchmail.h')
-rw-r--r--fetchmail.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/fetchmail.h b/fetchmail.h
index 1c1d4944..4d019a34 100644
--- a/fetchmail.h
+++ b/fetchmail.h
@@ -5,6 +5,9 @@
/* We need this for HAVE_STDARG_H, etc */
#include "config.h"
+/* We need this for size_t */
+#include <sys/types.h>
+
/* constants designating the various supported protocols */
#define P_AUTO 1
#define P_POP2 2
@@ -549,8 +552,8 @@ int interface_approve(struct hostdata *, flag domonitor);
#else
#define XMALLOCTYPE char
#endif
-XMALLOCTYPE *xmalloc(int);
-XMALLOCTYPE *xrealloc(XMALLOCTYPE *, int);
+XMALLOCTYPE *xmalloc(size_t);
+XMALLOCTYPE *xrealloc(/*@null@*/ XMALLOCTYPE *, size_t);
char *xstrdup(const char *);
#if defined(HAVE_ALLOCA_H)
#include <alloca.h>