diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-06-07 16:03:43 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-06-12 21:44:00 +0200 |
commit | ef31828d06b794f548928e46718f8b152a8e7fed (patch) | |
tree | 70b61c6b3c9e1af3102bcd3aea456ec4f67e8bfb /src/shared/install.h | |
parent | Merge pull request #8849 from irtimmer/feature/dns-over-tls (diff) | |
download | systemd-ef31828d06b794f548928e46718f8b152a8e7fed.tar.xz systemd-ef31828d06b794f548928e46718f8b152a8e7fed.zip |
tree-wide: unify how we define bit mak enums
Let's always write "1 << 0", "1 << 1" and so on, except where we need
more than 31 flag bits, where we write "UINT64(1) << 0", and so on to force
64bit values.
Diffstat (limited to 'src/shared/install.h')
-rw-r--r-- | src/shared/install.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shared/install.h b/src/shared/install.h index 80f98d722e..be980b128e 100644 --- a/src/shared/install.h +++ b/src/shared/install.h @@ -68,9 +68,9 @@ enum UnitFileChangeType { }; enum UnitFileFlags { - UNIT_FILE_RUNTIME = 1U << 0, - UNIT_FILE_FORCE = 1U << 1, - UNIT_FILE_DRY_RUN = 1U << 2, + UNIT_FILE_RUNTIME = 1 << 0, + UNIT_FILE_FORCE = 1 << 1, + UNIT_FILE_DRY_RUN = 1 << 2, }; /* type can either one of the UnitFileChangeTypes listed above, or a negative error. |