diff options
author | Armin Wolfermann <aw@osn.de> | 2003-01-05 21:59:59 +0000 |
---|---|---|
committer | Armin Wolfermann <aw@osn.de> | 2003-01-05 21:59:59 +0000 |
commit | 09e177badcb0d6b79abd203065adc2904d30355a (patch) | |
tree | 30b58b559f5296c72b4dfc193563f32efc2a8d8c /attach.c | |
parent | 195d60c029b0157a808dea9aec1ca68361aace67 (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.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; |