X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lib%2Fext2fs%2Find_block.c;h=aa82ae6b5a8167e56ad8f3ee2540c11ee229f231;hb=4a61d17c7c4c09ce3bb5f77bdb9b90eb9f10e8c3;hp=9baa37f586a7b8741d625883c6f09708f6c2455e;hpb=126a291c768b523bc228b276d3bea82675a86d09;p=tools%2Fe2fsprogs.git diff --git a/lib/ext2fs/ind_block.c b/lib/ext2fs/ind_block.c index 9baa37f..aa82ae6 100644 --- a/lib/ext2fs/ind_block.c +++ b/lib/ext2fs/ind_block.c @@ -1,15 +1,16 @@ /* * ind_block.c --- indirect block I/O routines - * - * Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, + * + * Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, * 2001, 2002, 2003, 2004, 2005 by Theodore Ts'o. * * %Begin-Header% - * This file may be redistributed under the terms of the GNU Public - * License. + * This file may be redistributed under the terms of the GNU Library + * General Public License, version 2. * %End-Header% */ +#include "config.h" #include #include #if HAVE_UNISTD_H @@ -22,9 +23,11 @@ errcode_t ext2fs_read_ind_block(ext2_filsys fs, blk_t blk, void *buf) { errcode_t retval; +#ifdef WORDS_BIGENDIAN blk_t *block_nr; int i; int limit = fs->blocksize >> 2; +#endif if ((fs->flags & EXT2_FLAG_IMAGE_FILE) && (fs->io != fs->image_io)) @@ -44,9 +47,11 @@ 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 WORDS_BIGENDIAN blk_t *block_nr; int i; int limit = fs->blocksize >> 2; +#endif if (fs->flags & EXT2_FLAG_IMAGE_FILE) return 0;