summaryrefslogtreecommitdiffstats
path: root/alias.c
diff options
context:
space:
mode:
authorArmin Wolfermann <aw@osn.de>2003-01-05 21:59:59 +0000
committerArmin Wolfermann <aw@osn.de>2003-01-05 21:59:59 +0000
commit09e177badcb0d6b79abd203065adc2904d30355a (patch)
tree30b58b559f5296c72b4dfc193563f32efc2a8d8c /alias.c
parent195d60c029b0157a808dea9aec1ca68361aace67 (diff)
Fix a number of invocations of mutt_yesorno(): Always explicitly use
the M_YES and M_NO constants. Fixes a couple of cases in which C-g would be mis-interpreted.
Diffstat (limited to 'alias.c')
-rw-r--r--alias.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/alias.c b/alias.c
index 6ccd7464..fdb866d2 100644
--- a/alias.c
+++ b/alias.c
@@ -249,9 +249,9 @@ retry_name:
if (mutt_check_alias_name (buf, fixed))
{
- switch (mutt_yesorno (_("Warning: This alias name may not work. Fix it?"), 1))
+ switch (mutt_yesorno (_("Warning: This alias name may not work. Fix it?"), M_YES))
{
- case 1:
+ case M_YES:
strfcpy (buf, fixed, sizeof (buf));
goto retry_name;
case -1:
@@ -296,7 +296,7 @@ retry_name:
buf[0] = 0;
rfc822_write_address (buf, sizeof (buf), new->addr);
snprintf (prompt, sizeof (prompt), _("[%s = %s] Accept?"), new->name, buf);
- if (mutt_yesorno (prompt, 1) != 1)
+ if (mutt_yesorno (prompt, M_YES) != M_YES)
{
mutt_free_alias (&new);
return;