From: Paul Eggert Date: Sun, 13 Aug 2017 18:03:40 +0000 (-0700) Subject: * lib/reallocarray.c: Fix layout. X-Git-Tag: v1.0~6008 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=825e198de85f173e74500d2adb1ff3bb9276ad5a;p=gnulib.git * lib/reallocarray.c: Fix layout. --- diff --git a/lib/reallocarray.c b/lib/reallocarray.c index 05357a4432..b4d72590a4 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); }