summaryrefslogtreecommitdiff
path: root/gcc/gencheck.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/gencheck.c')
-rw-r--r--gcc/gencheck.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/gencheck.c b/gcc/gencheck.c
index 915f3080292..a10c40b6b3b 100644
--- a/gcc/gencheck.c
+++ b/gcc/gencheck.c
@@ -66,11 +66,11 @@ int main (argc, argv)
/* FIXME: We only need an xmalloc definition because we are forced to
link with alloca.o on some platforms. This should go away if/when
we link against libiberty.a. (ghazi@caip.rutgers.edu 6/3/98) */
-char *
+PTR
xmalloc (nbytes)
- int nbytes;
+ size_t nbytes;
{
- char *tmp = (char *) malloc (nbytes);
+ register PTR tmp = (PTR) malloc (nbytes);
if (!tmp)
{