aboutsummaryrefslogtreecommitdiffstats
path: root/lib/xmalloc.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-12-07 03:12:10 +0000
committerJim Meyering <jim@meyering.net>1998-12-07 03:12:10 +0000
commit7d60769bead4b89a096e10bacbb503702ea6e44c (patch)
treec03ba9bef1c0339b2f4cbe993acff983cddb2146 /lib/xmalloc.c
parent*** empty log message *** (diff)
downloadcoreutils-7d60769bead4b89a096e10bacbb503702ea6e44c.tar.gz
coreutils-7d60769bead4b89a096e10bacbb503702ea6e44c.zip
ansideclify
Diffstat (limited to 'lib/xmalloc.c')
-rw-r--r--lib/xmalloc.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/lib/xmalloc.c b/lib/xmalloc.c
index 204469f24..c67082235 100644
--- a/lib/xmalloc.c
+++ b/lib/xmalloc.c
@@ -1,5 +1,5 @@
/* xmalloc.c -- malloc with out of memory checking
- Copyright (C) 1990, 91, 92, 93, 94, 95, 96, 97 Free Software Foundation, Inc.
+ Copyright (C) 1990-1997, 98 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -78,7 +78,7 @@ void error ();
#endif
static void
-xalloc_fail ()
+xalloc_fail (void)
{
if (xalloc_fail_func)
(*xalloc_fail_func) ();
@@ -88,8 +88,7 @@ xalloc_fail ()
/* Allocate N bytes of memory dynamically, with error checking. */
void *
-xmalloc (n)
- size_t n;
+xmalloc (size_t n)
{
void *p;
@@ -104,9 +103,7 @@ xmalloc (n)
If P is NULL, run xmalloc. */
void *
-xrealloc (p, n)
- void *p;
- size_t n;
+xrealloc (void *p, size_t n)
{
p = realloc (p, n);
if (p == 0)
@@ -119,8 +116,7 @@ xrealloc (p, 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;