svn commit: trunk/busybox/libbb
aldot at busybox.net
aldot at busybox.net
Wed May 31 13:31:17 UTC 2006
Author: aldot
Date: 2006-05-31 06:31:16 -0700 (Wed, 31 May 2006)
New Revision: 15246
Log:
- convert xcalloc(1,x) to xzalloc
Modified:
trunk/busybox/libbb/dump.c
Changeset:
Modified: trunk/busybox/libbb/dump.c
===================================================================
--- trunk/busybox/libbb/dump.c 2006-05-31 12:22:13 UTC (rev 15245)
+++ trunk/busybox/libbb/dump.c 2006-05-31 13:31:16 UTC (rev 15246)
@@ -98,7 +98,7 @@
for (nconv = 0, fmtp = fu->fmt; *fmtp; nextpr = &pr->nextpr) {
/* NOSTRICT */
/* DBU:[dvae at 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 @@
/* start new linked list of format units */
/* NOSTRICT */
- tfs = (FS *) xcalloc(1,sizeof(FS)); /*DBU:[dave at cray.com] start out NULL */
+ tfs = (FS *) xzalloc(sizeof(FS)); /*DBU:[dave at cray.com] start out NULL */
if (!bb_dump_fshead) {
bb_dump_fshead = tfs;
} else {
@@ -703,7 +703,7 @@
/* allocate a new format unit and link it in */
/* NOSTRICT */
/* DBU:[dave at 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;
More information about the busybox-cvs
mailing list