diff options
Diffstat (limited to 'locale/programs/xmalloc.c')
-rw-r--r-- | locale/programs/xmalloc.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/locale/programs/xmalloc.c b/locale/programs/xmalloc.c index 36bc17fe89..7524fa5083 100644 --- a/locale/programs/xmalloc.c +++ b/locale/programs/xmalloc.c @@ -1,5 +1,5 @@ /* xmalloc.c -- malloc with out of memory checking - Copyright (C) 1990-2015 Free Software Foundation, Inc. + Copyright (C) 1990-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. This program is free software; you can redistribute it and/or modify @@ -52,8 +52,7 @@ void free (); int xmalloc_exit_failure = EXIT_FAILURE; static VOID * -fixup_null_alloc (n) - size_t n; +fixup_null_alloc (size_t n) { VOID *p; @@ -68,8 +67,7 @@ fixup_null_alloc (n) /* Allocate N bytes of memory dynamically, with error checking. */ VOID * -xmalloc (n) - size_t n; +xmalloc (size_t n) { VOID *p; @@ -82,8 +80,7 @@ xmalloc (n) /* Allocate memory for N elements of S bytes, with error checking. */ VOID * -xcalloc (n, s) - size_t n, s; +xcalloc (size_t n, size_t s) { VOID *p; @@ -98,9 +95,7 @@ xcalloc (n, s) If P is NULL, run xmalloc. */ VOID * -xrealloc (p, n) - VOID *p; - size_t n; +xrealloc (VOID *p, size_t n) { if (p == 0) return xmalloc (n); |