summaryrefslogtreecommitdiff
path: root/src/basic/label.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/basic/label.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/basic/label.h')
-rw-r--r--src/basic/label.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/basic/label.h b/src/basic/label.h
index d3368083b7..b8e5ae0c35 100644
--- a/src/basic/label.h
+++ b/src/basic/label.h
@@ -11,8 +11,8 @@
#include <sys/types.h>
typedef enum LabelFixFlags {
- LABEL_IGNORE_ENOENT = 1U << 0,
- LABEL_IGNORE_EROFS = 1U << 1,
+ LABEL_IGNORE_ENOENT = 1 << 0,
+ LABEL_IGNORE_EROFS = 1 << 1,
} LabelFixFlags;
int label_fix(const char *path, LabelFixFlags flags);