diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-03-23 18:27:31 +0100 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2018-08-24 16:47:08 +0200 |
commit | 08018f768a1a9b260ba0bfb9c5b08f6493bcf525 (patch) | |
tree | 495bf7e31dfee8b76457455711a74f9993ff2c76 /src/basic/copy.h | |
parent | 68aea2470f0eaf69e32a74b0734074936b63c977 (diff) |
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.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/basic/copy.h b/src/basic/copy.h index faec04578..8f5acdb7c 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; #if 0 /// UNNEEDED by elogind |