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/dirblock.c | |
parent | db2ab89b7c66c97e7a849a4a25baca10de4576dc (diff) | |
download | busybox-7c94bed2345008b4b62014a846488319a7af0727.zip busybox-7c94bed2345008b4b62014a846488319a7af0727.tar.gz |
Big dead code elimination pass from Garrett.
Diffstat (limited to 'e2fsprogs/ext2fs/dirblock.c')
-rw-r--r-- | e2fsprogs/ext2fs/dirblock.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/e2fsprogs/ext2fs/dirblock.c b/e2fsprogs/ext2fs/dirblock.c index 9f82b50..4f2bbc1 100644 --- a/e2fsprogs/ext2fs/dirblock.c +++ b/e2fsprogs/ext2fs/dirblock.c @@ -26,14 +26,14 @@ errcode_t ext2fs_read_dir_block2(ext2_filsys fs, blk_t block, char *p, *end; struct ext2_dir_entry *dirent; unsigned int name_len, rec_len; -#ifdef EXT2FS_ENABLE_SWAPFS +#if BB_BIG_ENDIAN unsigned int do_swap; #endif retval = io_channel_read_blk(fs->io, block, 1, buf); if (retval) return retval; -#ifdef EXT2FS_ENABLE_SWAPFS +#if BB_BIG_ENDIAN do_swap = (fs->flags & (EXT2_FLAG_SWAP_BYTES| EXT2_FLAG_SWAP_BYTES_READ)) != 0; #endif @@ -41,7 +41,7 @@ errcode_t ext2fs_read_dir_block2(ext2_filsys fs, blk_t block, end = (char *) buf + fs->blocksize; while (p < end-8) { dirent = (struct ext2_dir_entry *) p; -#ifdef EXT2FS_ENABLE_SWAPFS +#if BB_BIG_ENDIAN if (do_swap) { dirent->inode = ext2fs_swab32(dirent->inode); dirent->rec_len = ext2fs_swab16(dirent->rec_len); @@ -75,7 +75,7 @@ errcode_t ext2fs_read_dir_block(ext2_filsys fs, blk_t block, errcode_t ext2fs_write_dir_block2(ext2_filsys fs, blk_t block, void *inbuf, int flags EXT2FS_ATTR((unused))) { -#ifdef EXT2FS_ENABLE_SWAPFS +#if BB_BIG_ENDIAN int do_swap = 0; errcode_t retval; char *p, *end; |