summaryrefslogtreecommitdiff
path: root/src/fsck
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-08-10 15:12:14 +0200
committerFilipe Brandenburger <filbranden@google.com>2018-08-10 13:27:43 -0700
commit5d3bab79e8409a50d65f2af9c506c0d99a85775c (patch)
treee6ef3cbe513426994e08a26174eb9d6ccfc3da2f /src/fsck
parentb257b19e6ba05559c126356526a4b7e095afa39e (diff)
downloadsystemd-5d3bab79e8409a50d65f2af9c506c0d99a85775c.tar.gz
systemd-5d3bab79e8409a50d65f2af9c506c0d99a85775c.tar.bz2
systemd-5d3bab79e8409a50d65f2af9c506c0d99a85775c.zip
fsck: use our usual syntax for defining bit masks
Diffstat (limited to 'src/fsck')
-rw-r--r--src/fsck/fsck.c16
1 files 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;