util.c (fatal_error): Use the correct magic number when checking the
magic number for the io_channel data structure. Also remove
extraneous call to io_channel_flush() that was left over from an
editing session.
2001-05-05 Theodore Tso <tytso@valinux.com>
+ * util.c (fatal_error): Use the correct magic number when checking
+ the magic number for the io_channel data structure. Also
+ remove extraneous call to io_channel_flush() that was left
+ over from an editing session.
+
* pass2.c (check_dir_block): Ignore EXT2_ET_DIR_CORRUPTED errors
from ext2fs_read_dir_block().
{
if (msg)
fprintf (stderr, "e2fsck: %s\n", msg);
- if (ctx->fs && ctx->fs->io)
- io_channel_flush(ctx->fs->io);
if (ctx->fs && ctx->fs->io) {
- if (ctx->fs->io->magic == EXT2_ET_MAGIC_IO_MANAGER)
+ if (ctx->fs->io->magic == EXT2_ET_MAGIC_IO_CHANNEL)
io_channel_flush(ctx->fs->io);
else
fprintf(stderr, "e2fsck: io manager magic bad!\n");