summaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorEric Andersen2004-03-30 09:33:18 +0000
committerEric Andersen2004-03-30 09:33:18 +0000
commitbbbbcfef24ac89f1ac6550a533cbcccf78e779fe (patch)
tree64a104098cbcef1f91f511167c1c3047dc73a754 /util-linux
parent0a92f3570224f3529b2f46431f44b69dd0ab64bd (diff)
downloadbusybox-bbbbcfef24ac89f1ac6550a533cbcccf78e779fe.zip
busybox-bbbbcfef24ac89f1ac6550a533cbcccf78e779fe.tar.gz
Sigh. what a mess.
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/fdisk.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c
index 96517da..b9e875f 100644
--- a/util-linux/fdisk.c
+++ b/util-linux/fdisk.c
@@ -2011,8 +2011,7 @@ sgi_write_table(void) {
*/
sgiinfo *info = fill_sgiinfo();
int infostartblock = SGI_SSWAP32(sgilabel->directory[0].vol_file_start);
- if (lseek(fd, (long long)infostartblock*
- SECTOR_SIZE, SEEK_SET) < 0)
+ if (lseek(fd, infostartblock*SECTOR_SIZE, SEEK_SET) < 0)
fdisk_fatal(unable_to_seek);
if (write(fd, info, SECTOR_SIZE) != SECTOR_SIZE)
fdisk_fatal(unable_to_write);