aboutsummaryrefslogtreecommitdiff
path: root/util-linux/fdisk_osf.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-11-30 21:11:01 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-11-30 21:11:01 +0000
commit93f6aa6bca1621fc5bce8f543e3e0b3a0be01378 (patch)
tree0b9d8eb5f92194aa86fafe08625752ebb218dca4 /util-linux/fdisk_osf.c
parent610c4aa197e057dea3848054d08fa9980ea679c0 (diff)
downloadbusybox-w32-93f6aa6bca1621fc5bce8f543e3e0b3a0be01378.tar.gz
busybox-w32-93f6aa6bca1621fc5bce8f543e3e0b3a0be01378.tar.bz2
busybox-w32-93f6aa6bca1621fc5bce8f543e3e0b3a0be01378.zip
"make bigdata" biggest offender dealt with:
xmalloc 16Kb buffer instead of keeping it in bss
Diffstat (limited to 'util-linux/fdisk_osf.c')
-rw-r--r--util-linux/fdisk_osf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util-linux/fdisk_osf.c b/util-linux/fdisk_osf.c
index 71cf138ee..bff2371e4 100644
--- a/util-linux/fdisk_osf.c
+++ b/util-linux/fdisk_osf.c
@@ -735,7 +735,7 @@ xbsd_write_bootstrap(void)
735 memset(d, 0, sizeof(struct xbsd_disklabel)); 735 memset(d, 0, sizeof(struct xbsd_disklabel));
736 736
737 snprintf(path, sizeof(path), "%s/boot%s", bootdir, dkbasename); 737 snprintf(path, sizeof(path), "%s/boot%s", bootdir, dkbasename);
738 if (!xbsd_get_bootstrap (path, &disklabelbuffer[xbsd_dlabel.d_secsize], 738 if (!xbsd_get_bootstrap(path, &disklabelbuffer[xbsd_dlabel.d_secsize],
739 (int) xbsd_dlabel.d_bbsize - xbsd_dlabel.d_secsize)) 739 (int) xbsd_dlabel.d_bbsize - xbsd_dlabel.d_secsize))
740 return; 740 return;
741 741
@@ -969,7 +969,7 @@ xbsd_writelabel (struct partition *p, struct xbsd_disklabel *d)
969 d, sizeof(struct xbsd_disklabel)); 969 d, sizeof(struct xbsd_disklabel));
970 970
971#if defined (__alpha__) && BSD_LABELSECTOR == 0 971#if defined (__alpha__) && BSD_LABELSECTOR == 0
972 alpha_bootblock_checksum (disklabelbuffer); 972 alpha_bootblock_checksum(disklabelbuffer);
973 if (lseek(fd, 0, SEEK_SET) == -1) 973 if (lseek(fd, 0, SEEK_SET) == -1)
974 fdisk_fatal(unable_to_seek); 974 fdisk_fatal(unable_to_seek);
975 if (BSD_BBSIZE != write(fd, disklabelbuffer, BSD_BBSIZE)) 975 if (BSD_BBSIZE != write(fd, disklabelbuffer, BSD_BBSIZE))