summaryrefslogtreecommitdiff
path: root/src/basic/fileio.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/fileio.h
parent401e860cb88d406b2683bd2c8c8ba97c0a223e36 (diff)
downloadsystemd-ef31828d06b794f548928e46718f8b152a8e7fed.tar.gz
systemd-ef31828d06b794f548928e46718f8b152a8e7fed.tar.bz2
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/basic/fileio.h')
-rw-r--r--src/basic/fileio.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/basic/fileio.h b/src/basic/fileio.h
index 744d319abe..a5ff1fb6ba 100644
--- a/src/basic/fileio.h
+++ b/src/basic/fileio.h
@@ -17,12 +17,12 @@
#include "time-util.h"
typedef enum {
- WRITE_STRING_FILE_CREATE = 1<<0,
- WRITE_STRING_FILE_ATOMIC = 1<<1,
- WRITE_STRING_FILE_AVOID_NEWLINE = 1<<2,
- WRITE_STRING_FILE_VERIFY_ON_FAILURE = 1<<3,
- WRITE_STRING_FILE_SYNC = 1<<4,
- WRITE_STRING_FILE_DISABLE_BUFFER = 1<<5,
+ WRITE_STRING_FILE_CREATE = 1 << 0,
+ WRITE_STRING_FILE_ATOMIC = 1 << 1,
+ WRITE_STRING_FILE_AVOID_NEWLINE = 1 << 2,
+ WRITE_STRING_FILE_VERIFY_ON_FAILURE = 1 << 3,
+ WRITE_STRING_FILE_SYNC = 1 << 4,
+ WRITE_STRING_FILE_DISABLE_BUFFER = 1 << 5,
/* And before you wonder, why write_string_file_atomic_label_ts() is a separate function instead of just one
more flag here: it's about linking: we don't want to pull -lselinux into all users of write_string_file()