From: Jim Meyering Date: Fri, 17 Oct 2003 13:34:46 +0000 (+0000) Subject: (main): Simply assign to bit_flags. X-Git-Tag: v5.1.0~349 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae7d7b4ad4fd1373c3e05da1e3572d90cfc1056b;p=thirdparty%2Fcoreutils.git (main): Simply assign to bit_flags. Don't bother with bit arithmetic. --- 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':