diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2017-08-13 11:03:40 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2017-08-13 11:04:01 -0700 |
commit | 825e198de85f173e74500d2adb1ff3bb9276ad5a (patch) | |
tree | 9f664aecff143a54014a47d30c0c952c7508c17e /lib/reallocarray.c | |
parent | aa459ef443c756c28ce883fdd7f15c98fcefc7dc (diff) | |
download | gnulib-825e198de85f173e74500d2adb1ff3bb9276ad5a.tar.gz |
* lib/reallocarray.c: Fix layout.
Diffstat (limited to 'lib/reallocarray.c')
-rw-r--r-- | lib/reallocarray.c | 9 |
1 files changed, 5 insertions, 4 deletions
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); } |