summaryrefslogtreecommitdiff
path: root/cmd_fsck.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd_fsck.c')
-rw-r--r--cmd_fsck.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd_fsck.c b/cmd_fsck.c
index 54ace957..00134971 100644
--- a/cmd_fsck.c
+++ b/cmd_fsck.c
@@ -37,7 +37,7 @@ int cmd_fsck(int argc, char *argv[])
opt_set(opts, degraded, true);
opt_set(opts, fsck, true);
- opt_set(opts, fix_errors, FSCK_OPT_ASK);
+ opt_set(opts, fix_errors, FSCK_FIX_ask);
while ((opt = getopt_long(argc, argv,
"apynfo:rvh",
@@ -45,14 +45,14 @@ int cmd_fsck(int argc, char *argv[])
switch (opt) {
case 'a': /* outdated alias for -p */
case 'p':
- opt_set(opts, fix_errors, FSCK_OPT_YES);
+ opt_set(opts, fix_errors, FSCK_FIX_yes);
break;
case 'y':
- opt_set(opts, fix_errors, FSCK_OPT_YES);
+ opt_set(opts, fix_errors, FSCK_FIX_no);
break;
case 'n':
opt_set(opts, nochanges, true);
- opt_set(opts, fix_errors, FSCK_OPT_NO);
+ opt_set(opts, fix_errors, FSCK_FIX_no);
break;
case 'f':
/* force check, even if filesystem marked clean: */