dd.c: reduce duplication in new O_FULLBLOCK-defining code
authorJim Meyering <meyering@redhat.com>
Thu, 7 Aug 2008 21:01:16 +0000 (23:01 +0200)
committerJim Meyering <meyering@redhat.com>
Sat, 9 Aug 2008 14:56:01 +0000 (16:56 +0200)
commit2a2d3f237b256e43d55c9c0149d5ceba750f30f8
tree072c37a5cf70bbc9ae933dd2dcabb3c11b9a65f3
parent0d279d2378c144fa119bacbd7f18685698739d55
dd.c: reduce duplication in new O_FULLBLOCK-defining code

* src/dd.c (MULTIPLE_BITS_SET): New macro, extracted from...
(multiple_bits_set): ...this function.
Use a single-line, and far simpler expression (no need to list all
O_* symbols again) to validate the derived O_FULLBLOCK value.
src/dd.c