aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-08-03 20:07:35 +0000
committerlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-08-03 20:07:35 +0000
commite5765408936171c2e0c37c4eaca8e1a187ef4235 (patch)
tree2d31e921a759c769f339055c9946205fabef5cbf /util-linux
parent2265911dfe0141d98022f3054f4af2c7976e0921 (diff)
downloadbusybox-w32-e5765408936171c2e0c37c4eaca8e1a187ef4235.tar.gz
busybox-w32-e5765408936171c2e0c37c4eaca8e1a187ef4235.tar.bz2
busybox-w32-e5765408936171c2e0c37c4eaca8e1a187ef4235.zip
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. git-svn-id: svn://busybox.net/trunk/busybox@15771 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/fdisk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c
index 1c935463e..310bd555e 100644
--- a/util-linux/fdisk.c
+++ b/util-linux/fdisk.c
@@ -5162,7 +5162,7 @@ add_partition(int n, int sys)
5162 ext_index = n; 5162 ext_index = n;
5163 pen->ext_pointer = p; 5163 pen->ext_pointer = p;
5164 pe4->offset = extended_offset = start; 5164 pe4->offset = extended_offset = start;
5165 pe4->sectorbuffer = xcalloc(1, sector_size); 5165 pe4->sectorbuffer = xzalloc(sector_size);
5166 pe4->part_table = pt_offset(pe4->sectorbuffer, 0); 5166 pe4->part_table = pt_offset(pe4->sectorbuffer, 0);
5167 pe4->ext_pointer = pe4->part_table + 1; 5167 pe4->ext_pointer = pe4->part_table + 1;
5168 pe4->changed = 1; 5168 pe4->changed = 1;
@@ -5176,7 +5176,7 @@ add_logical(void)
5176 if (partitions > 5 || ptes[4].part_table->sys_ind) { 5176 if (partitions > 5 || ptes[4].part_table->sys_ind) {
5177 struct pte *pe = &ptes[partitions]; 5177 struct pte *pe = &ptes[partitions];
5178 5178
5179 pe->sectorbuffer = xcalloc(1, sector_size); 5179 pe->sectorbuffer = xzalloc(sector_size);
5180 pe->part_table = pt_offset(pe->sectorbuffer, 0); 5180 pe->part_table = pt_offset(pe->sectorbuffer, 0);
5181 pe->ext_pointer = pe->part_table + 1; 5181 pe->ext_pointer = pe->part_table + 1;
5182 pe->offset = 0; 5182 pe->offset = 0;