diff options
author | Miles Bader <miles@lsi.nec.co.jp> | 2002-07-24 06:07:17 +0000 |
---|---|---|
committer | Miles Bader <miles@lsi.nec.co.jp> | 2002-07-24 06:07:17 +0000 |
commit | a4214b24913dbe9050e540ddd97376f2f79ceb63 (patch) | |
tree | 3bafd61759218a5cd56c55dd6db7d2503b7f287c /libc | |
parent | 1c53466dd39e2b513f6a1fee9f7e42736905d443 (diff) |
Misc small cleanups.
Diffstat (limited to 'libc')
-rw-r--r-- | libc/stdlib/malloc/free.c | 3 | ||||
-rw-r--r-- | libc/stdlib/malloc/malloc.c | 3 | ||||
-rw-r--r-- | libc/stdlib/malloc/realloc.c | 4 |
3 files changed, 6 insertions, 4 deletions
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 <stdlib.h> #include <string.h> -#include <sys/mman.h> #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); |