summaryrefslogtreecommitdiff
path: root/libthreads
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1994-05-05 11:21:42 +0000
committerRoland McGrath <roland@gnu.org>1994-05-05 11:21:42 +0000
commit8fb28eaee9f1ff6c648cc3cdfad031f7422ae3a9 (patch)
tree38937ad4141c6307526f12195c51060ab485734e /libthreads
parent86a13e28b322e21598c68bf37ad061e661eba60f (diff)
entered into RCS
Diffstat (limited to 'libthreads')
-rw-r--r--libthreads/malloc.c16
1 files changed, 10 insertions, 6 deletions
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;