summaryrefslogtreecommitdiffstats
path: root/attach.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 /attach.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 'attach.c')
-rw-r--r--attach.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/attach.c b/attach.c
index 628eb9a4..7a3c3bca 100644
--- a/attach.c
+++ b/attach.c
@@ -112,7 +112,7 @@ int mutt_compose_attachment (BODY *a)
a->filename, newfile));
if (safe_symlink (a->filename, newfile) == -1)
{
- if (!mutt_yesorno (_("Can't match nametemplate, continue?"), 1))
+ if (mutt_yesorno (_("Can't match nametemplate, continue?"), M_YES) != M_YES)
goto bailout;
}
unlink_newfile = 1;
@@ -239,7 +239,7 @@ int mutt_edit_attachment (BODY *a)
a->filename, newfile));
if (safe_symlink (a->filename, newfile) == -1)
{
- if (!mutt_yesorno (_("Can't match nametemplate, continue?"), 1))
+ if (mutt_yesorno (_("Can't match nametemplate, continue?"), M_YES) != M_YES)
goto bailout;
}
unlink_newfile = 1;
@@ -468,7 +468,7 @@ int mutt_view_attachment (FILE *fp, BODY *a, int flag, HEADER *hdr,
/* send case: the file is already there */
if (safe_symlink (a->filename, tempfile) == -1)
{
- if (mutt_yesorno (_("Can't match nametemplate, continue?"), 1) == M_YES)
+ if (mutt_yesorno (_("Can't match nametemplate, continue?"), M_YES) == M_YES)
strfcpy (tempfile, a->filename, sizeof (tempfile));
else
goto return_error;
@@ -958,7 +958,7 @@ int mutt_print_attachment (FILE *fp, BODY *a)
{
if (safe_symlink(a->filename, newfile) == -1)
{
- if (mutt_yesorno (_("Can't match nametemplate, continue?"), 1) != M_YES)
+ if (mutt_yesorno (_("Can't match nametemplate, continue?"), M_YES) != M_YES)
{
rfc1524_free_entry (&entry);
return 0;