maint: Use logical rather than bitwise operators on bools
authorPádraig Brady <P@draigBrady.com>
Wed, 23 Sep 2009 09:10:51 +0000 (10:10 +0100)
committerPádraig Brady <P@draigBrady.com>
Wed, 23 Sep 2009 13:33:40 +0000 (14:33 +0100)
commita037e838e15c9a698f1634398e0fe2726398d575
tree7361ac5f2c3dbd8fc4763e6fa960e6646670dc79
parentade8dd2096e1898edefadf2314d4e1ec654adda5
maint: Use logical rather than bitwise operators on bools

This is because bitwise operators are:
- confusing and inconsistent in a boolean context
- non short circuiting
- brittle in C89 where bool can be an int (so > 1)
28 files changed:
src/cat.c
src/chcon.c
src/chgrp.c
src/chmod.c
src/chown-core.c
src/chown.c
src/copy.c
src/cp.c
src/dd.c
src/df.c
src/du.c
src/expand.c
src/expr.c
src/id.c
src/install.c
src/ls.c
src/md5sum.c
src/od.c
src/pathchk.c
src/pr.c
src/ptx.c
src/rm.c
src/sort.c
src/stty.c
src/tail.c
src/test.c
src/unexpand.c
src/wc.c