static int pgp_send_menu (int bits)
{
- int c;
+ event_t ch;
char *p;
char *micalg = NULL;
char input_signas[SHORT_STRING];
do
{
mutt_refresh ();
- if ((c = mutt_getch ()) == ERR)
+
+ ch = mutt_getch();
+ if (ch.ch == EOF)
break;
- if (c == 'a')
+
+ if (ch.ch == 'a')
{
unset_option(OPTPGPCHECKTRUST);
mutt_error _("An unkown PGP version was defined for signing.");
}
}
- else if (c == 'm')
+ else if (ch.ch == 'm')
{
if(!(bits & PGPSIGN))
mutt_error _("This doesn't make sense if you don't want to sign the message.");
}
}
}
- else if (c == 'e')
+ else if (ch.ch == 'e')
bits |= PGPENCRYPT;
- else if (c == 's')
+ else if (ch.ch == 's')
bits |= PGPSIGN;
- else if (c == 'b')
+ else if (ch.ch == 'b')
bits = PGPENCRYPT | PGPSIGN;
- else if (c == 'f')
+ else if (ch.ch == 'f')
bits = 0;
else
{
BEEP ();
- c = 0;
+ ch.ch = 0;
}
}
- while (c == 0);
+ while (ch.ch == 0);
CLEARLINE (LINES-1);
mutt_refresh ();
return (bits);
int i, flag;
event_t event;
- mvprintw (LINES - 1, 0, "%s flag? (D/N/O/r/*/!): ", bf ? _("Set") : _("Clear"));
+ mvprintw (LINES - 1, 0, "%s? (D/N/O/r/*/!): ", bf ? _("Set flag") : _("Clear flag"));
clrtoeol ();
event = mutt_getch();