From be059c77bf2042d7f32dd55aebd1bac662c5e7fd Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 21 Sep 2013 13:41:03 +0200 Subject: Fix gcc warning * ext2fs/dir.c (dirscanblock): Test ds->type against LOOKUP instead of LOOKING. They happened to have the same value. --- ext2fs/dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext2fs') diff --git a/ext2fs/dir.c b/ext2fs/dir.c index 3a3e648d..a291436e 100644 --- a/ext2fs/dir.c +++ b/ext2fs/dir.c @@ -465,7 +465,7 @@ dirscanblock (vm_address_t blockaddr, struct node *dp, int idx, } if (consider_compress - && (ds->type == LOOKING + && (ds->type == LOOKUP || (ds->type == COMPRESS && ds->nbytes > nbytes))) { ds->type = CREATE; -- cgit v1.2.3