From 7c94bed2345008b4b62014a846488319a7af0727 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 3 May 2006 21:58:45 +0000 Subject: Big dead code elimination pass from Garrett. --- e2fsprogs/ext2fs/ext_attr.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'e2fsprogs/ext2fs/ext_attr.c') diff --git a/e2fsprogs/ext2fs/ext_attr.c b/e2fsprogs/ext2fs/ext_attr.c index 10b8bfd9d..17610a914 100644 --- a/e2fsprogs/ext2fs/ext_attr.c +++ b/e2fsprogs/ext2fs/ext_attr.c @@ -12,15 +12,12 @@ */ #include -#if HAVE_UNISTD_H #include -#endif #include #include #include "ext2_fs.h" #include "ext2_ext_attr.h" - #include "ext2fs.h" errcode_t ext2fs_read_ext_attr(ext2_filsys fs, blk_t block, void *buf) @@ -30,7 +27,7 @@ errcode_t ext2fs_read_ext_attr(ext2_filsys fs, blk_t block, void *buf) retval = io_channel_read_blk(fs->io, block, 1, 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)) != 0) ext2fs_swap_ext_attr(buf, buf, fs->blocksize, 1); @@ -44,7 +41,7 @@ errcode_t ext2fs_write_ext_attr(ext2_filsys fs, blk_t block, void *inbuf) char *write_buf; char *buf = NULL; -#ifdef EXT2FS_ENABLE_SWAPFS +#if BB_BIG_ENDIAN if ((fs->flags & EXT2_FLAG_SWAP_BYTES) || (fs->flags & EXT2_FLAG_SWAP_BYTES_WRITE)) { retval = ext2fs_get_mem(fs->blocksize, &buf); -- cgit v1.2.3