diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-12-16 17:22:33 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-12-16 17:22:33 +0000 |
commit | f77f369ce89549ae3b0b70bfbac4e9c242ec5298 (patch) | |
tree | b7b9979a4dc949a9bd7f8db90c48ba5491eb1844 /util-linux/fdisk_osf.c | |
parent | c794c51a1aa23d2edcff8e1ab4edf96194d3208c (diff) | |
download | busybox-w32-f77f369ce89549ae3b0b70bfbac4e9c242ec5298.tar.gz busybox-w32-f77f369ce89549ae3b0b70bfbac4e9c242ec5298.tar.bz2 busybox-w32-f77f369ce89549ae3b0b70bfbac4e9c242ec5298.zip |
fdisk: reduce global data/bss usage. 8k data+bss build is achievable soon ;)
(add/remove: 0/13 grow/shrink: 6/19 up/down: 74/-492) Total: -418 bytes
text data bss dec hex filename
778330 860 7408 786598 c00a6 busybox_old
777970 840 7376 786186 bff0a busybox_unstripped
Diffstat (limited to 'util-linux/fdisk_osf.c')
-rw-r--r-- | util-linux/fdisk_osf.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/util-linux/fdisk_osf.c b/util-linux/fdisk_osf.c index 726138265..5a7e6323d 100644 --- a/util-linux/fdisk_osf.c +++ b/util-linux/fdisk_osf.c | |||
@@ -240,8 +240,6 @@ static const char *const xbsd_fstypes[] = { | |||
240 | Also fixed unaligned accesses in alpha_bootblock_checksum() | 240 | Also fixed unaligned accesses in alpha_bootblock_checksum() |
241 | */ | 241 | */ |
242 | 242 | ||
243 | static int possibly_osf_label; | ||
244 | |||
245 | #define FREEBSD_PARTITION 0xa5 | 243 | #define FREEBSD_PARTITION 0xa5 |
246 | #define NETBSD_PARTITION 0xa9 | 244 | #define NETBSD_PARTITION 0xa9 |
247 | 245 | ||
@@ -876,10 +874,10 @@ xbsd_initlabel(struct partition *p) | |||
876 | d->d_flags = 0; | 874 | d->d_flags = 0; |
877 | #endif | 875 | #endif |
878 | d->d_secsize = SECTOR_SIZE; /* bytes/sector */ | 876 | d->d_secsize = SECTOR_SIZE; /* bytes/sector */ |
879 | d->d_nsectors = sectors; /* sectors/track */ | 877 | d->d_nsectors = g_sectors; /* sectors/track */ |
880 | d->d_ntracks = heads; /* tracks/cylinder (heads) */ | 878 | d->d_ntracks = g_heads; /* tracks/cylinder (heads) */ |
881 | d->d_ncylinders = cylinders; | 879 | d->d_ncylinders = g_cylinders; |
882 | d->d_secpercyl = sectors * heads; /* sectors/cylinder */ | 880 | d->d_secpercyl = g_sectors * g_heads;/* sectors/cylinder */ |
883 | if (d->d_secpercyl == 0) | 881 | if (d->d_secpercyl == 0) |
884 | d->d_secpercyl = 1; /* avoid segfaults */ | 882 | d->d_secpercyl = 1; /* avoid segfaults */ |
885 | d->d_secperunit = d->d_secpercyl * d->d_ncylinders; | 883 | d->d_secperunit = d->d_secpercyl * d->d_ncylinders; |
@@ -1027,7 +1025,7 @@ xbsd_link_part(void) | |||
1027 | int k, i; | 1025 | int k, i; |
1028 | struct partition *p; | 1026 | struct partition *p; |
1029 | 1027 | ||
1030 | k = get_partition(1, partitions); | 1028 | k = get_partition(1, g_partitions); |
1031 | 1029 | ||
1032 | if (!xbsd_check_new_partition(&i)) | 1030 | if (!xbsd_check_new_partition(&i)) |
1033 | return; | 1031 | return; |