summaryrefslogtreecommitdiff
path: root/src/portable/portable.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-06-07 16:03:43 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-06-12 21:44:00 +0200
commitef31828d06b794f548928e46718f8b152a8e7fed (patch)
tree70b61c6b3c9e1af3102bcd3aea456ec4f67e8bfb /src/portable/portable.h
parent401e860cb88d406b2683bd2c8c8ba97c0a223e36 (diff)
downloadsystemd-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/portable/portable.h')
-rw-r--r--src/portable/portable.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/portable/portable.h b/src/portable/portable.h
index a0959abb64..9fbf61265a 100644
--- a/src/portable/portable.h
+++ b/src/portable/portable.h
@@ -18,9 +18,9 @@ typedef struct PortableMetadata {
#define PORTABLE_METADATA_IS_UNIT(m) (!IN_SET((m)->name[0], 0, '/'))
typedef enum PortableFlags {
- PORTABLE_PREFER_COPY = 1U << 0,
- PORTABLE_PREFER_SYMLINK = 1U << 1,
- PORTABLE_RUNTIME = 1U << 2,
+ PORTABLE_PREFER_COPY = 1 << 0,
+ PORTABLE_PREFER_SYMLINK = 1 << 1,
+ PORTABLE_RUNTIME = 1 << 2,
} PortableFlags;
typedef enum PortableChangeType {