diff options
author | Jim Meyering <jim@meyering.net> | 2003-10-17 13:34:46 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-10-17 13:34:46 +0000 |
commit | ae7d7b4ad4fd1373c3e05da1e3572d90cfc1056b (patch) | |
tree | fc28813197d5d3b813b32d656326c8833d8b881e | |
parent | 43c89831d848a73462b65b60d7ef5cf9805a5cdc (diff) | |
download | coreutils-ae7d7b4ad4fd1373c3e05da1e3572d90cfc1056b.tar.xz |
(main): Simply assign to bit_flags.
Don't bother with bit arithmetic.
-rw-r--r-- | src/du.c | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -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': |