diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-10-18 09:57:39 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-10-18 09:57:39 +0200 |
commit | 7673e7fda42a2665f8528d531e9596f264643149 (patch) | |
tree | d254fd4195a2642027187e8115172fa62652fd19 /util-linux/mkfs_ext2.c | |
parent | 28736c36ca6a73864324296117ce26c9a23066dd (diff) | |
download | busybox-w32-7673e7fda42a2665f8528d531e9596f264643149.tar.gz busybox-w32-7673e7fda42a2665f8528d531e9596f264643149.tar.bz2 busybox-w32-7673e7fda42a2665f8528d531e9596f264643149.zip |
mkfs_ext2: shrink
function old new delta
mkfs_ext2_main 1924 1904 -20
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/mkfs_ext2.c')
-rw-r--r-- | util-linux/mkfs_ext2.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/util-linux/mkfs_ext2.c b/util-linux/mkfs_ext2.c index 6b059d9ff..8df9f1a66 100644 --- a/util-linux/mkfs_ext2.c +++ b/util-linux/mkfs_ext2.c | |||
@@ -283,7 +283,6 @@ int mkfs_ext2_main(int argc UNUSED_PARAM, char **argv) | |||
283 | nblocks = xatou(argv[1]); | 283 | nblocks = xatou(argv[1]); |
284 | } else { | 284 | } else { |
285 | nblocks = ((uoff_t)xlseek(fd, 0, SEEK_END)) / blocksize; | 285 | nblocks = ((uoff_t)xlseek(fd, 0, SEEK_END)) / blocksize; |
286 | xlseek(fd, 0, SEEK_SET); | ||
287 | } | 286 | } |
288 | sb->s_blocks_count = nblocks; | 287 | sb->s_blocks_count = nblocks; |
289 | 288 | ||
@@ -414,7 +413,6 @@ int mkfs_ext2_main(int argc UNUSED_PARAM, char **argv) | |||
414 | ); | 413 | ); |
415 | // dump inode bitmap | 414 | // dump inode bitmap |
416 | PUT((pos + overhead + 1) * blocksize, buf, blocksize); | 415 | PUT((pos + overhead + 1) * blocksize, buf, blocksize); |
417 | |||
418 | } | 416 | } |
419 | 417 | ||
420 | // zero boot sectors | 418 | // zero boot sectors |