فهرست منبع

Code formatting cleanup.

Miles Bader 22 سال پیش
والد
کامیت
3e6ccac195
1فایلهای تغییر یافته به همراه6 افزوده شده و 5 حذف شده
  1. 6 5
      libc/stdlib/malloc/realloc.c

+ 6 - 5
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.  */