From 8fb28eaee9f1ff6c648cc3cdfad031f7422ae3a9 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 5 May 1994 11:21:42 +0000 Subject: entered into RCS --- libthreads/malloc.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'libthreads/malloc.c') diff --git a/libthreads/malloc.c b/libthreads/malloc.c index 3ac15c97..fd22d23f 100644 --- a/libthreads/malloc.c +++ b/libthreads/malloc.c @@ -137,9 +137,10 @@ more_memory(size, fl) } while (--n != 0); } -char * +/* Declaration changed to standard one for GNU. */ +void * malloc(size) - register unsigned int size; + register size_t size; { register int i, n; register free_list_t fl; @@ -197,8 +198,10 @@ malloc(size) return ((char *) h) + sizeof(union header); } +/* Declaration changed to standard one for GNU. */ +void free(base) - char *base; + void *base; { register header_t h; register free_list_t fl; @@ -236,10 +239,11 @@ free(base) return; } -char * +/* Declaration changed to standard one for GNU. */ +void * realloc(old_base, new_size) - char *old_base; - unsigned int new_size; + void *old_base; + size_t new_size; { register header_t h; register free_list_t fl; -- cgit v1.2.3