aboutsummaryrefslogtreecommitdiff
path: root/libbb/dump.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-05-31 13:31:16 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-05-31 13:31:16 +0000
commitf3ac9ebc8e4744bdb98955e682e46dab8509bed9 (patch)
treecfd0624080294f58614d707728bfcdb1be3eb31e /libbb/dump.c
parent595159f38cfbf355eb221be337de0e25e12ea7af (diff)
downloadbusybox-f3ac9ebc8e4744bdb98955e682e46dab8509bed9.tar.gz
- convert xcalloc(1,x) to xzalloc
Diffstat (limited to 'libbb/dump.c')
-rw-r--r--libbb/dump.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libbb/dump.c b/libbb/dump.c
index 9dcfb5408..1a54ebbd9 100644
--- a/libbb/dump.c
+++ b/libbb/dump.c
@@ -98,7 +98,7 @@ static void rewrite(FS * fs)
for (nconv = 0, fmtp = fu->fmt; *fmtp; nextpr = &pr->nextpr) {
/* NOSTRICT */
/* DBU:[dvae@cray.com] calloc so that forward ptrs start out NULL*/
- pr = (PR *) xcalloc(1,sizeof(PR));
+ pr = (PR *) xzalloc(sizeof(PR));
if (!fu->nextpr)
fu->nextpr = pr;
/* ignore nextpr -- its unused inside the loop and is
@@ -683,7 +683,7 @@ void bb_dump_add(const char *fmt)
/* start new linked list of format units */
/* NOSTRICT */
- tfs = (FS *) xcalloc(1,sizeof(FS)); /*DBU:[dave@cray.com] start out NULL */
+ tfs = (FS *) xzalloc(sizeof(FS)); /*DBU:[dave@cray.com] start out NULL */
if (!bb_dump_fshead) {
bb_dump_fshead = tfs;
} else {
@@ -703,7 +703,7 @@ void bb_dump_add(const char *fmt)
/* allocate a new format unit and link it in */
/* NOSTRICT */
/* DBU:[dave@cray.com] calloc so that forward pointers start out NULL */
- tfu = (FU *) xcalloc(1,sizeof(FU));
+ tfu = (FU *) xzalloc(sizeof(FU));
*nextfu = tfu;
nextfu = &tfu->nextfu;
tfu->reps = 1;