diff options
author | Mike Frysinger | 2005-07-30 09:43:58 +0000 |
---|---|---|
committer | Mike Frysinger | 2005-07-30 09:43:58 +0000 |
commit | e70aa9de7ebd8674bfeed74e6cd5c3d6d377c721 (patch) | |
tree | f44399506d8fb29a977bfefb4dab1e631ee661d5 /e2fsprogs | |
parent | 223b8879602de4ba7e8b0a8022dc8b76661f697f (diff) | |
download | busybox-e70aa9de7ebd8674bfeed74e6cd5c3d6d377c721.zip busybox-e70aa9de7ebd8674bfeed74e6cd5c3d6d377c721.tar.gz |
only declare do_swap if we need it
Diffstat (limited to 'e2fsprogs')
-rw-r--r-- | e2fsprogs/ext2fs/dirblock.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/e2fsprogs/ext2fs/dirblock.c b/e2fsprogs/ext2fs/dirblock.c index ebfc72c..5d66ad1 100644 --- a/e2fsprogs/ext2fs/dirblock.c +++ b/e2fsprogs/ext2fs/dirblock.c @@ -25,8 +25,10 @@ errcode_t ext2fs_read_dir_block2(ext2_filsys fs, blk_t block, errcode_t retval; char *p, *end; struct ext2_dir_entry *dirent; - unsigned int name_len, rec_len, do_swap; - + unsigned int name_len, rec_len; +#ifdef EXT2FS_ENABLE_SWAPFS + unsigned int do_swap; +#endif retval = io_channel_read_blk(fs->io, block, 1, buf); if (retval) |