summaryrefslogtreecommitdiff
path: root/src/basic/copy.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-06-07 16:03:43 +0200
committerSven Eden <yamakuzure@gmx.net>2018-08-24 16:47:08 +0200
commit8ed3fb11d6a5198537bd6cc2f145051635441101 (patch)
treeca941a1a5e604a7dc302bf233add8e651e534871 /src/basic/copy.h
parentae754fd36ce0ff18d88271484af3cf38e7b502e4 (diff)
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/copy.h')
-rw-r--r--src/basic/copy.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/basic/copy.h b/src/basic/copy.h
index 7c1d86fe3..d54010560 100644
--- a/src/basic/copy.h
+++ b/src/basic/copy.h
@@ -13,10 +13,10 @@
#include <sys/types.h>
typedef enum CopyFlags {
- COPY_REFLINK = 1U << 0, /* Try to reflink */
- COPY_MERGE = 1U << 1, /* Merge existing trees with our new one to copy */
- COPY_REPLACE = 1U << 2, /* Replace an existing file if there's one */
- COPY_SAME_MOUNT = 1U << 3, /* Don't descend recursively into other file systems, across mount point boundaries */
+ COPY_REFLINK = 1 << 0, /* Try to reflink */
+ COPY_MERGE = 1 << 1, /* Merge existing trees with our new one to copy */
+ COPY_REPLACE = 1 << 2, /* Replace an existing file if there's one */
+ COPY_SAME_MOUNT = 1 << 3, /* Don't descend recursively into other file systems, across mount point boundaries */
} CopyFlags;
#if 0 /// UNNEEDED by elogind