aboutsummaryrefslogtreecommitdiff
path: root/e2fsprogs/ext2fs
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-06-25 22:39:24 +0000
committerRob Landley <rob@landley.net>2006-06-25 22:39:24 +0000
commit11c7a7bed60a55a670363bec3c07e8d88aa372b7 (patch)
tree809c167b4c007b334afcb34b4689841a029022ac /e2fsprogs/ext2fs
parentf087798e8bf5857b679c369601426ca29334caee (diff)
downloadbusybox-11c7a7bed60a55a670363bec3c07e8d88aa372b7.tar.gz
Various cleanups I made while going through Erik Hovland's patch submissions,
some of which are even from him. :)
Diffstat (limited to 'e2fsprogs/ext2fs')
-rw-r--r--e2fsprogs/ext2fs/ext_attr.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/e2fsprogs/ext2fs/ext_attr.c b/e2fsprogs/ext2fs/ext_attr.c
index 17610a914..ca9f9e20c 100644
--- a/e2fsprogs/ext2fs/ext_attr.c
+++ b/e2fsprogs/ext2fs/ext_attr.c
@@ -41,16 +41,14 @@ errcode_t ext2fs_write_ext_attr(ext2_filsys fs, blk_t block, void *inbuf)
char *write_buf;
char *buf = NULL;
-#if BB_BIG_ENDIAN
- if ((fs->flags & EXT2_FLAG_SWAP_BYTES) ||
- (fs->flags & EXT2_FLAG_SWAP_BYTES_WRITE)) {
+ if (BB_BIG_ENDIAN && ((fs->flags & EXT2_FLAG_SWAP_BYTES) ||
+ (fs->flags & EXT2_FLAG_SWAP_BYTES_WRITE))) {
retval = ext2fs_get_mem(fs->blocksize, &buf);
if (retval)
return retval;
write_buf = buf;
ext2fs_swap_ext_attr(buf, inbuf, fs->blocksize, 1);
} else
-#endif
write_buf = (char *) inbuf;
retval = io_channel_write_blk(fs->io, block, 1, write_buf);
if (buf)