summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
Diffstat (limited to 'libc')
-rw-r--r--libc/stdlib/malloc/free.c3
-rw-r--r--libc/stdlib/malloc/malloc.c3
-rw-r--r--libc/stdlib/malloc/realloc.c4
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);