aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authoraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-05-31 13:31:16 +0000
committeraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-05-31 13:31:16 +0000
commit59888e647719fea0597f6efff90ec1e093c3480b (patch)
treecfd0624080294f58614d707728bfcdb1be3eb31e /libbb
parentcae5d293b3c6ccb2755a8082329516c3a48c4cb0 (diff)
downloadbusybox-w32-59888e647719fea0597f6efff90ec1e093c3480b.tar.gz
busybox-w32-59888e647719fea0597f6efff90ec1e093c3480b.tar.bz2
busybox-w32-59888e647719fea0597f6efff90ec1e093c3480b.zip
- convert xcalloc(1,x) to xzalloc
git-svn-id: svn://busybox.net/trunk/busybox@15246 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb')
-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)
98 for (nconv = 0, fmtp = fu->fmt; *fmtp; nextpr = &pr->nextpr) { 98 for (nconv = 0, fmtp = fu->fmt; *fmtp; nextpr = &pr->nextpr) {
99 /* NOSTRICT */ 99 /* NOSTRICT */
100 /* DBU:[dvae@cray.com] calloc so that forward ptrs start out NULL*/ 100 /* DBU:[dvae@cray.com] calloc so that forward ptrs start out NULL*/
101 pr = (PR *) xcalloc(1,sizeof(PR)); 101 pr = (PR *) xzalloc(sizeof(PR));
102 if (!fu->nextpr) 102 if (!fu->nextpr)
103 fu->nextpr = pr; 103 fu->nextpr = pr;
104 /* ignore nextpr -- its unused inside the loop and is 104 /* ignore nextpr -- its unused inside the loop and is
@@ -683,7 +683,7 @@ void bb_dump_add(const char *fmt)
683 683
684 /* start new linked list of format units */ 684 /* start new linked list of format units */
685 /* NOSTRICT */ 685 /* NOSTRICT */
686 tfs = (FS *) xcalloc(1,sizeof(FS)); /*DBU:[dave@cray.com] start out NULL */ 686 tfs = (FS *) xzalloc(sizeof(FS)); /*DBU:[dave@cray.com] start out NULL */
687 if (!bb_dump_fshead) { 687 if (!bb_dump_fshead) {
688 bb_dump_fshead = tfs; 688 bb_dump_fshead = tfs;
689 } else { 689 } else {
@@ -703,7 +703,7 @@ void bb_dump_add(const char *fmt)
703 /* allocate a new format unit and link it in */ 703 /* allocate a new format unit and link it in */
704 /* NOSTRICT */ 704 /* NOSTRICT */
705 /* DBU:[dave@cray.com] calloc so that forward pointers start out NULL */ 705 /* DBU:[dave@cray.com] calloc so that forward pointers start out NULL */
706 tfu = (FU *) xcalloc(1,sizeof(FU)); 706 tfu = (FU *) xzalloc(sizeof(FU));
707 *nextfu = tfu; 707 *nextfu = tfu;
708 nextfu = &tfu->nextfu; 708 nextfu = &tfu->nextfu;
709 tfu->reps = 1; 709 tfu->reps = 1;