summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-11-09 20:34:17 +0000
committerJim Meyering <jim@meyering.net>1999-11-09 20:34:17 +0000
commitf5225442f808d099ebbb93e978dd28dade3d9aed (patch)
tree8c1a7a43d6cd1d607ca90894a388a4a3e31d9af2 /lib
parent1b5e676e38b193ac1fe0c46b77678332878272b2 (diff)
downloadcoreutils-f5225442f808d099ebbb93e978dd28dade3d9aed.tar.xz
(XMALLOC): Correct misnamed macro parameter name: s/N_bytes/N_items/.
(XCALLOC): Likewise. (XREALLOC): Likewise.
Diffstat (limited to 'lib')
-rw-r--r--lib/xalloc.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/xalloc.h b/lib/xalloc.h
index c9bbb1386..8668e198b 100644
--- a/lib/xalloc.h
+++ b/lib/xalloc.h
@@ -61,10 +61,10 @@ void *xcalloc PARAMS ((size_t n, size_t s));
void *xrealloc PARAMS ((void *p, size_t n));
char *xstrdup PARAMS ((const char *str));
-# define XMALLOC(Type, N_bytes) ((Type *) xmalloc (sizeof (Type) * (N_bytes)))
-# define XCALLOC(Type, N_bytes) ((Type *) xcalloc (sizeof (Type), (N_bytes)))
-# define XREALLOC(Ptr, Type, N_bytes) \
- ((Type *) xrealloc ((void *) (Ptr), sizeof (Type) * (N_bytes)))
+# define XMALLOC(Type, N_items) ((Type *) xmalloc (sizeof (Type) * (N_items)))
+# define XCALLOC(Type, N_items) ((Type *) xcalloc (sizeof (Type), (N_items)))
+# define XREALLOC(Ptr, Type, N_items) \
+ ((Type *) xrealloc ((void *) (Ptr), sizeof (Type) * (N_items)))
/* Declare and alloc memory for VAR of type TYPE. */
# define NEW(Type, Var) Type *(Var) = XMALLOC (Type, 1)