From: Eric Andersen Date: Tue, 30 Mar 2004 09:33:18 +0000 (-0000) Subject: Sigh. what a mess. X-Git-Tag: 1_00_pre9~43 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bbbbcfef24ac89f1ac6550a533cbcccf78e779fe;p=oweals%2Fbusybox.git Sigh. what a mess. --- diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c index 96517da96..b9e875f41 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);