aboutsummaryrefslogtreecommitdiffstats
path: root/xmalloc.c
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 /xmalloc.c
parent354fa788cda62c39386d4282b99348256958093e (diff)
downloadfetchmail-52b3a2412b177e8f3acb56234bd98dc2810dc682.tar.gz
fetchmail-52b3a2412b177e8f3acb56234bd98dc2810dc682.tar.bz2
fetchmail-52b3a2412b177e8f3acb56234bd98dc2810dc682.zip
xmalloc type cleanup.
svn path=/trunk/; revision=3636
Diffstat (limited to 'xmalloc.c')
-rw-r--r--xmalloc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/xmalloc.c b/xmalloc.c
index 74365586..c5af357c 100644
--- a/xmalloc.c
+++ b/xmalloc.c
@@ -6,6 +6,7 @@
*/
#include "config.h"
+#include <sys/types.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
@@ -22,7 +23,7 @@
#endif
XMALLOCTYPE *
-xmalloc (int n)
+xmalloc (size_t n)
{
XMALLOCTYPE *p;
@@ -36,7 +37,7 @@ xmalloc (int n)
}
XMALLOCTYPE *
-xrealloc (XMALLOCTYPE *p, int n)
+xrealloc (XMALLOCTYPE *p, size_t n)
{
if (p == 0)
return xmalloc (n);