aboutsummaryrefslogtreecommitdiffstats
path: root/common/cmd_fuse.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/cmd_fuse.c')
-rw-r--r--common/cmd_fuse.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/common/cmd_fuse.c b/common/cmd_fuse.c
index 0df57dbc80..abab9789b0 100644
--- a/common/cmd_fuse.c
+++ b/common/cmd_fuse.c
@@ -33,15 +33,8 @@ static int confirm_prog(void)
"what you are doing!\n"
"\nReally perform this fuse programming? <y/N>\n");
- if (getc() == 'y') {
- int c;
-
- putc('y');
- c = getc();
- putc('\n');
- if (c == '\r')
- return 1;
- }
+ if (confirm_yesno())
+ return 1;
puts("Fuse programming aborted\n");
return 0;