diff options
| author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-05-31 13:31:16 +0000 |
|---|---|---|
| committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-05-31 13:31:16 +0000 |
| commit | f3ac9ebc8e4744bdb98955e682e46dab8509bed9 (patch) | |
| tree | cfd0624080294f58614d707728bfcdb1be3eb31e /libbb | |
| parent | 595159f38cfbf355eb221be337de0e25e12ea7af (diff) | |
| download | busybox-w32-f3ac9ebc8e4744bdb98955e682e46dab8509bed9.tar.gz busybox-w32-f3ac9ebc8e4744bdb98955e682e46dab8509bed9.tar.bz2 busybox-w32-f3ac9ebc8e4744bdb98955e682e46dab8509bed9.zip | |
- convert xcalloc(1,x) to xzalloc
Diffstat (limited to 'libbb')
| -rw-r--r-- | libbb/dump.c | 6 |
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; |
