From 5d3bab79e8409a50d65f2af9c506c0d99a85775c Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 10 Aug 2018 15:12:14 +0200 Subject: fsck: use our usual syntax for defining bit masks --- src/fsck/fsck.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/fsck/fsck.c b/src/fsck/fsck.c index 26fbd8bb03..50f838a421 100644 --- a/src/fsck/fsck.c +++ b/src/fsck/fsck.c @@ -34,14 +34,14 @@ /* exit codes as defined in fsck(8) */ enum { - FSCK_SUCCESS = 0, - FSCK_ERROR_CORRECTED = 1, - FSCK_SYSTEM_SHOULD_REBOOT = 2, - FSCK_ERRORS_LEFT_UNCORRECTED = 4, - FSCK_OPERATIONAL_ERROR = 8, - FSCK_USAGE_OR_SYNTAX_ERROR = 16, - FSCK_USER_CANCELLED = 32, - FSCK_SHARED_LIB_ERROR = 128, + FSCK_SUCCESS = 0, + FSCK_ERROR_CORRECTED = 1 << 0, + FSCK_SYSTEM_SHOULD_REBOOT = 1 << 1, + FSCK_ERRORS_LEFT_UNCORRECTED = 1 << 2, + FSCK_OPERATIONAL_ERROR = 1 << 3, + FSCK_USAGE_OR_SYNTAX_ERROR = 1 << 4, + FSCK_USER_CANCELLED = 1 << 5, + FSCK_SHARED_LIB_ERROR = 1 << 7, }; static bool arg_skip = false; -- cgit v1.2.1