summaryrefslogtreecommitdiffstats
path: root/g10/cpr.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/cpr.c')
-rw-r--r--g10/cpr.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/g10/cpr.c b/g10/cpr.c
index 99c8eecb0..9fc9e0995 100644
--- a/g10/cpr.c
+++ b/g10/cpr.c
@@ -493,7 +493,7 @@ cpr_kill_prompt(void)
}
int
-cpr_get_answer_is_yes( const char *keyword, const char *prompt )
+cpr_get_answer_is_yes_def (const char *keyword, const char *prompt, int def_yes)
{
int yes;
char *p;
@@ -509,7 +509,7 @@ cpr_get_answer_is_yes( const char *keyword, const char *prompt )
}
else {
tty_kill_prompt();
- yes = answer_is_yes(p);
+ yes = answer_is_yes_no_default (p, def_yes);
xfree(p);
return yes;
}
@@ -517,6 +517,12 @@ cpr_get_answer_is_yes( const char *keyword, const char *prompt )
}
int
+cpr_get_answer_is_yes (const char *keyword, const char *prompt)
+{
+ return cpr_get_answer_is_yes_def (keyword, prompt, 0);
+}
+
+int
cpr_get_answer_yes_no_quit( const char *keyword, const char *prompt )
{
int yes;