[BusyBox-cvs] svn commit: trunk/busybox/e2fsprogs/ext2fs

vapier at busybox.net vapier at busybox.net
Sat Jul 30 09:43:58 UTC 2005


Author: vapier
Date: 2005-07-30 03:43:58 -0600 (Sat, 30 Jul 2005)
New Revision: 10984

Log:
only declare do_swap if we need it

Modified:
   trunk/busybox/e2fsprogs/ext2fs/dirblock.c


Changeset:
Modified: trunk/busybox/e2fsprogs/ext2fs/dirblock.c
===================================================================
--- trunk/busybox/e2fsprogs/ext2fs/dirblock.c	2005-07-30 09:42:05 UTC (rev 10983)
+++ trunk/busybox/e2fsprogs/ext2fs/dirblock.c	2005-07-30 09:43:58 UTC (rev 10984)
@@ -25,8 +25,10 @@
 	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)




More information about the busybox-cvs mailing list