]> Savannah Git Hosting - gnulib.git/commitdiff
* lib/reallocarray.c: Fix layout.
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 13 Aug 2017 18:03:40 +0000 (11:03 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 13 Aug 2017 18:04:01 +0000 (11:04 -0700)
lib/reallocarray.c

index 05357a4432ca27a55d935a2e2a59bdf28f1420d6..b4d72590a46be8f468a58034dd000f76dfa6d838 100644 (file)
@@ -1,4 +1,4 @@
-/* reallocarray() function that is glibc compatible.
+/* reallocarray function that is glibc compatible.
 
    Copyright (C) 2017 Free Software Foundation, Inc.
 
 #include "xalloc-oversized.h"
 
 void *
-reallocarray(void *ptr, size_t nmemb, size_t size)
+reallocarray (void *ptr, size_t nmemb, size_t size)
 {
     if (xalloc_oversized (nmemb, size))
       {
         errno = ENOMEM;
         return NULL;
       }
-    /* We rely on using the semantics of the GNU realloc() function here. */
-    return realloc(ptr, nmemb * size);
+
+    /* Rely on the semantics of GNU realloc.  */
+    return realloc (ptr, nmemb * size);
 }