[CRIU] [PATCH 13/18] sk-unix: Make USK_ flags in shift form

Cyrill Gorcunov gorcunov at openvz.org
Wed Apr 12 06:58:33 PDT 2017


We will add more flags here.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 criu/sk-unix.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/criu/sk-unix.c b/criu/sk-unix.c
index 1b1af7d9dbe6..5acef298d109 100644
--- a/criu/sk-unix.c
+++ b/criu/sk-unix.c
@@ -798,8 +798,8 @@ struct unix_sk_info {
 	bool			listen;
 };
 
-#define USK_PAIR_MASTER		0x1
-#define USK_PAIR_SLAVE		0x2
+#define USK_PAIR_MASTER		(1 << 0)
+#define USK_PAIR_SLAVE		(1 << 1)
 
 static struct unix_sk_info *find_unix_sk_by_ino(int ino)
 {
-- 
2.7.4



More information about the CRIU mailing list