From ae7d7b4ad4fd1373c3e05da1e3572d90cfc1056b Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 17 Oct 2003 13:34:46 +0000 Subject: [PATCH] (main): Simply assign to bit_flags. Don't bother with bit arithmetic. --- src/du.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/du.c b/src/du.c index d1ae5b7325..58c799ab3e 100644 --- a/src/du.c +++ b/src/du.c @@ -625,18 +625,15 @@ main (int argc, char **argv) break; case 'D': /* This will eventually be 'H' (-H), too. */ - bit_flags |= FTS_COMFOLLOW; + bit_flags = FTS_COMFOLLOW; break; - case 'P': /* --no-dereference */ - bit_flags |= FTS_PHYSICAL; - bit_flags &= ~FTS_LOGICAL; - bit_flags &= ~FTS_COMFOLLOW; + case 'L': /* --dereference */ + bit_flags = FTS_LOGICAL; break; - case 'L': /* --dereference */ - bit_flags |= FTS_LOGICAL; - bit_flags &= ~FTS_PHYSICAL; + case 'P': /* --no-dereference */ + bit_flags = FTS_PHYSICAL; break; case 'S': -- 2.47.2