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/basic/conf-files.h | |
parent | 401e860cb88d406b2683bd2c8c8ba97c0a223e36 (diff) | |
download | systemd-ef31828d06b794f548928e46718f8b152a8e7fed.tar.gz |
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/basic/conf-files.h')
-rw-r--r-- | src/basic/conf-files.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/basic/conf-files.h b/src/basic/conf-files.h index 78d03e6e0d..a3adc0828e 100644 --- a/src/basic/conf-files.h +++ b/src/basic/conf-files.h @@ -9,11 +9,11 @@ ***/ enum { - CONF_FILES_EXECUTABLE = 1U << 0, - CONF_FILES_REGULAR = 1U << 1, - CONF_FILES_DIRECTORY = 1U << 2, - CONF_FILES_BASENAME = 1U << 3, - CONF_FILES_FILTER_MASKED = 1U << 4, + CONF_FILES_EXECUTABLE = 1 << 0, + CONF_FILES_REGULAR = 1 << 1, + CONF_FILES_DIRECTORY = 1 << 2, + CONF_FILES_BASENAME = 1 << 3, + CONF_FILES_FILTER_MASKED = 1 << 4, }; int conf_files_list(char ***ret, const char *suffix, const char *root, unsigned flags, const char *dir, ...); |