From 08018f768a1a9b260ba0bfb9c5b08f6493bcf525 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 23 Mar 2018 18:27:31 +0100 Subject: copy: rearrange flags field definition Let's use the usual 1U << 0,1,2,3,4 spelling for definiting flags enums. --- src/basic/copy.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/basic/copy.h') 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 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 -- cgit v1.2.3