diff options
author | Mike Frysinger | 2005-06-11 00:11:37 +0000 |
---|---|---|
committer | Mike Frysinger | 2005-06-11 00:11:37 +0000 |
commit | 0301ffab3d9e6e43bdc3dc29cff4eb36097967c9 (patch) | |
tree | 91ab13ac24ac63fb4890354b5fcbb226d49624fb /e2fsprogs/ext2fs/ind_block.c | |
parent | 1f96c979844ae6ecdd5ce009f961de9205890910 (diff) | |
download | busybox-0301ffab3d9e6e43bdc3dc29cff4eb36097967c9.zip busybox-0301ffab3d9e6e43bdc3dc29cff4eb36097967c9.tar.gz |
only define some variables if legacy EXT2FS_ENABLE_SWAPFS is enabled
Diffstat (limited to 'e2fsprogs/ext2fs/ind_block.c')
-rw-r--r-- | e2fsprogs/ext2fs/ind_block.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/e2fsprogs/ext2fs/ind_block.c b/e2fsprogs/ext2fs/ind_block.c index 3519048..c9fd86a 100644 --- a/e2fsprogs/ext2fs/ind_block.c +++ b/e2fsprogs/ext2fs/ind_block.c @@ -22,9 +22,11 @@ errcode_t ext2fs_read_ind_block(ext2_filsys fs, blk_t blk, void *buf) { errcode_t retval; +#ifdef EXT2FS_ENABLE_SWAPFS blk_t *block_nr; int i; int limit = fs->blocksize >> 2; +#endif if ((fs->flags & EXT2_FLAG_IMAGE_FILE) && (fs->io != fs->image_io)) @@ -46,9 +48,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 EXT2FS_ENABLE_SWAPFS blk_t *block_nr; int i; int limit = fs->blocksize >> 2; +#endif if (fs->flags & EXT2_FLAG_IMAGE_FILE) return 0; |