projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a92f35
)
Sigh. what a mess.
author
Eric Andersen
<andersen@codepoet.org>
Tue, 30 Mar 2004 09:33:18 +0000
(09:33 -0000)
committer
Eric Andersen
<andersen@codepoet.org>
Tue, 30 Mar 2004 09:33:18 +0000
(09:33 -0000)
util-linux/fdisk.c
patch
|
blob
|
history
diff --git
a/util-linux/fdisk.c
b/util-linux/fdisk.c
index 96517da96bff8cb944975c6f6efe5ee04ef9fa20..b9e875f41dab5f23910997e5ea303d29d503b1c6 100644
(file)
--- 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);