summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorMiles Bader <miles@lsi.nec.co.jp>2003-10-16 10:13:53 +0000
committerMiles Bader <miles@lsi.nec.co.jp>2003-10-16 10:13:53 +0000
commit3e6ccac195e61f572b0ac342d33ff9738e96a409 (patch)
treea9e8bde72457ba5ac794414a9cf3f93b4411ac1f /libc
parent0a8bcf917a6e98593629e4641e2e9e12c7e5a8fa (diff)
Code formatting cleanup.
Diffstat (limited to 'libc')
-rw-r--r--libc/stdlib/malloc/realloc.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/libc/stdlib/malloc/realloc.c b/libc/stdlib/malloc/realloc.c
index 9e6f880fe..85392ae6a 100644
--- a/libc/stdlib/malloc/realloc.c
+++ b/libc/stdlib/malloc/realloc.c
@@ -26,12 +26,13 @@ realloc (void *mem, size_t new_size)
char *base_mem;
/* Check for special cases. */
- if (!mem)
- return malloc(new_size);
- if (!new_size) {
+ if (! mem)
+ return malloc (new_size);
+ if (! new_size)
+ {
free (mem);
- return (malloc(new_size));
- }
+ return malloc (new_size);
+ }
/* Normal realloc. */