summaryrefslogtreecommitdiff
path: root/src/basic/copy.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-03-23 18:27:31 +0100
committerLennart Poettering <lennart@poettering.net>2018-04-13 11:32:46 +0200
commit39c3905646361b5727b01c01401d5a5914aec63f (patch)
treed83410a816dea66a02cd05946b1a1e20d0156d63 /src/basic/copy.h
parentdd641ad1b8c196208aaf74ccfd1f0a0598745484 (diff)
downloadsystemd-39c3905646361b5727b01c01401d5a5914aec63f.tar.gz
copy: rearrange flags field definition
Let's use the usual 1U << 0,1,2,3,4 spelling for definiting flags enums.
Diffstat (limited to 'src/basic/copy.h')
-rw-r--r--src/basic/copy.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/basic/copy.h b/src/basic/copy.h
index 9ea1049f83..0c50bcef50 100644
--- a/src/basic/copy.h
+++ b/src/basic/copy.h
@@ -13,9 +13,9 @@
#include <sys/types.h>
typedef enum CopyFlags {
- COPY_REFLINK = 0x1, /* try to reflink */
- COPY_MERGE = 0x2, /* merge existing trees with our new one to copy */
- COPY_REPLACE = 0x4, /* replace an existing file if there's one */
+ 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 */
} CopyFlags;
int copy_file_fd(const char *from, int to, CopyFlags copy_flags);