From 081e38483ec55dcfca3d92434fe94f0777ed962d Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 3 Aug 2006 20:07:35 +0000 Subject: Remove xcalloc() and convert its callers to xzalloc(). About half of them were using "1" as one of the arguments anyway, and as for the rest a multiply and a push isn't noticeably bigger than pushing two arguments on the stack. --- coreutils/ls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coreutils/ls.c') diff --git a/coreutils/ls.c b/coreutils/ls.c index 6b9fbbfc9..828127a4a 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c @@ -300,7 +300,7 @@ static struct dnode **dnalloc(int num) if (num < 1) return (NULL); - p = (struct dnode **) xcalloc((size_t) num, (size_t) (sizeof(struct dnode *))); + p = (struct dnode **) xzalloc(num * sizeof(struct dnode *)); return (p); } -- cgit v1.2.3-55-g6feb