From 825e198de85f173e74500d2adb1ff3bb9276ad5a Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 13 Aug 2017 11:03:40 -0700 Subject: [PATCH 2/2] * lib/reallocarray.c: Fix layout. --- lib/reallocarray.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/reallocarray.c b/lib/reallocarray.c index 05357a4..b4d7259 100644 --- a/lib/reallocarray.c +++ b/lib/reallocarray.c @@ -1,4 +1,4 @@ -/* reallocarray() function that is glibc compatible. +/* reallocarray function that is glibc compatible. Copyright (C) 2017 Free Software Foundation, Inc. @@ -25,13 +25,14 @@ #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); } -- 2.7.4