diff options
author | Rob Landley | 2006-05-03 21:58:45 +0000 |
---|---|---|
committer | Rob Landley | 2006-05-03 21:58:45 +0000 |
commit | 7c94bed2345008b4b62014a846488319a7af0727 (patch) | |
tree | 4345ba7255410654b6c8c4d7f51122643f6d9584 /e2fsprogs/ext2fs/openfs.c | |
parent | db2ab89b7c66c97e7a849a4a25baca10de4576dc (diff) | |
download | busybox-7c94bed2345008b4b62014a846488319a7af0727.zip busybox-7c94bed2345008b4b62014a846488319a7af0727.tar.gz |
Big dead code elimination pass from Garrett.
Diffstat (limited to 'e2fsprogs/ext2fs/openfs.c')
-rw-r--r-- | e2fsprogs/ext2fs/openfs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/e2fsprogs/ext2fs/openfs.c b/e2fsprogs/ext2fs/openfs.c index aa60333..646ec4d 100644 --- a/e2fsprogs/ext2fs/openfs.c +++ b/e2fsprogs/ext2fs/openfs.c @@ -89,7 +89,7 @@ errcode_t ext2fs_open2(const char *name, const char *io_options, int groups_per_block, blocks_per_group; blk_t group_block, blk; char *dest, *cp; -#ifdef EXT2FS_ENABLE_SWAPFS +#if BB_BIG_ENDIAN int j; struct ext2_group_desc *gdp; #endif @@ -175,7 +175,7 @@ errcode_t ext2fs_open2(const char *name, const char *io_options, if (fs->orig_super) memcpy(fs->orig_super, fs->super, SUPERBLOCK_SIZE); -#ifdef EXT2FS_ENABLE_SWAPFS +#if BB_BIG_ENDIAN if ((fs->super->s_magic == ext2fs_swab16(EXT2_SUPER_MAGIC)) || (fs->flags & EXT2_FLAG_SWAP_BYTES)) { fs->flags |= EXT2_FLAG_SWAP_BYTES; @@ -277,7 +277,7 @@ errcode_t ext2fs_open2(const char *name, const char *io_options, retval = io_channel_read_blk(fs->io, blk, 1, dest); if (retval) goto cleanup; -#ifdef EXT2FS_ENABLE_SWAPFS +#if BB_BIG_ENDIAN if (fs->flags & EXT2_FLAG_SWAP_BYTES) { gdp = (struct ext2_group_desc *) dest; for (j=0; j < groups_per_block; j++) |