From a4214b24913dbe9050e540ddd97376f2f79ceb63 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Wed, 24 Jul 2002 06:07:17 +0000 Subject: Misc small cleanups. --- libc/stdlib/malloc/free.c | 3 ++- libc/stdlib/malloc/malloc.c | 3 ++- libc/stdlib/malloc/realloc.c | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) (limited to 'libc/stdlib') diff --git a/libc/stdlib/malloc/free.c b/libc/stdlib/malloc/free.c index 41deed737..4aa21cb84 100644 --- a/libc/stdlib/malloc/free.c +++ b/libc/stdlib/malloc/free.c @@ -106,7 +106,8 @@ unmap_free_area (struct heap *heap, struct heap_free_area *fa) } -void free (void *mem) +void +free (void *mem) { if (mem) { diff --git a/libc/stdlib/malloc/malloc.c b/libc/stdlib/malloc/malloc.c index 0e84bf646..049a3e003 100644 --- a/libc/stdlib/malloc/malloc.c +++ b/libc/stdlib/malloc/malloc.c @@ -23,7 +23,8 @@ struct heap __malloc_heap = HEAP_INIT; -void *malloc (size_t size) +void * +malloc (size_t size) { void *mem; diff --git a/libc/stdlib/malloc/realloc.c b/libc/stdlib/malloc/realloc.c index 091b3392b..7d8227aff 100644 --- a/libc/stdlib/malloc/realloc.c +++ b/libc/stdlib/malloc/realloc.c @@ -13,13 +13,13 @@ #include #include -#include #include "malloc.h" #include "heap.h" -void *realloc (void *mem, size_t new_size) +void * +realloc (void *mem, size_t new_size) { if (! mem) return malloc (new_size); -- cgit v1.2.3