diff options
author | Rob Landley <rob@landley.net> | 2006-05-03 21:58:45 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-05-03 21:58:45 +0000 |
commit | 7c94bed2345008b4b62014a846488319a7af0727 (patch) | |
tree | 4345ba7255410654b6c8c4d7f51122643f6d9584 /e2fsprogs/ext2fs/ind_block.c | |
parent | db2ab89b7c66c97e7a849a4a25baca10de4576dc (diff) |
Big dead code elimination pass from Garrett.
Diffstat (limited to 'e2fsprogs/ext2fs/ind_block.c')
-rw-r--r-- | e2fsprogs/ext2fs/ind_block.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/e2fsprogs/ext2fs/ind_block.c b/e2fsprogs/ext2fs/ind_block.c index 3e6cdc138..4728fe7b5 100644 --- a/e2fsprogs/ext2fs/ind_block.c +++ b/e2fsprogs/ext2fs/ind_block.c @@ -22,7 +22,7 @@ errcode_t ext2fs_read_ind_block(ext2_filsys fs, blk_t blk, void *buf) { errcode_t retval; -#ifdef EXT2FS_ENABLE_SWAPFS +#if BB_BIG_ENDIAN blk_t *block_nr; int i; int limit = fs->blocksize >> 2; @@ -36,7 +36,7 @@ errcode_t ext2fs_read_ind_block(ext2_filsys fs, blk_t blk, void *buf) if (retval) return retval; } -#ifdef EXT2FS_ENABLE_SWAPFS +#if BB_BIG_ENDIAN if (fs->flags & (EXT2_FLAG_SWAP_BYTES | EXT2_FLAG_SWAP_BYTES_READ)) { block_nr = (blk_t *) buf; for (i = 0; i < limit; i++, block_nr++) @@ -48,7 +48,7 @@ errcode_t ext2fs_read_ind_block(ext2_filsys fs, blk_t blk, void *buf) errcode_t ext2fs_write_ind_block(ext2_filsys fs, blk_t blk, void *buf) { -#ifdef EXT2FS_ENABLE_SWAPFS +#if BB_BIG_ENDIAN blk_t *block_nr; int i; int limit = fs->blocksize >> 2; @@ -57,7 +57,7 @@ errcode_t ext2fs_write_ind_block(ext2_filsys fs, blk_t blk, void *buf) if (fs->flags & EXT2_FLAG_IMAGE_FILE) return 0; -#ifdef EXT2FS_ENABLE_SWAPFS +#if BB_BIG_ENDIAN if (fs->flags & (EXT2_FLAG_SWAP_BYTES | EXT2_FLAG_SWAP_BYTES_WRITE)) { block_nr = (blk_t *) buf; for (i = 0; i < limit; i++, block_nr++) |