]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(main): Simply assign to bit_flags.
authorJim Meyering <jim@meyering.net>
Fri, 17 Oct 2003 13:34:46 +0000 (13:34 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 17 Oct 2003 13:34:46 +0000 (13:34 +0000)
Don't bother with bit arithmetic.

src/du.c

index d1ae5b73257bcdafb263388fc7b32efb5f1b5e0c..58c799ab3e06308fb2403f2a79016ee879ad3eba 100644 (file)
--- 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':