Commit c8185295 authored by Brendan Cully's avatar Brendan Cully

Silence some eclipse warnings

parent 58a67eb3
......@@ -146,11 +146,11 @@ static void redraw_crypt_lines (HEADER *msg)
clrtoeol ();
if ((WithCrypto & APPLICATION_PGP)
&& msg->security & APPLICATION_PGP && msg->security & SIGN)
&& (msg->security & APPLICATION_PGP) && (msg->security & SIGN))
printw ("%s%s", _(" sign as: "), PgpSignAs ? PgpSignAs : _("<default>"));
if ((WithCrypto & APPLICATION_SMIME)
&& msg->security & APPLICATION_SMIME && msg->security & SIGN) {
&& (msg->security & APPLICATION_SMIME) && (msg->security & SIGN)) {
printw ("%s%s", _(" sign as: "), SmimeDefaultKey ? SmimeDefaultKey : _("<default>"));
}
......@@ -1213,7 +1213,7 @@ int mutt_compose_menu (HEADER *msg, /* structure for new message */
if (!(WithCrypto & APPLICATION_PGP))
break;
if ((WithCrypto & APPLICATION_SMIME)
&& msg->security & APPLICATION_SMIME)
&& (msg->security & APPLICATION_SMIME))
{
if (mutt_yesorno (_("S/MIME already selected. Clear & continue ? "),
M_YES) != M_YES)
......@@ -1239,7 +1239,7 @@ int mutt_compose_menu (HEADER *msg, /* structure for new message */
break;
if ((WithCrypto & APPLICATION_PGP)
&& msg->security & APPLICATION_PGP)
&& (msg->security & APPLICATION_PGP))
{
if (mutt_yesorno (_("PGP already selected. Clear & continue ? "),
M_YES) != M_YES)
......
......@@ -1072,7 +1072,7 @@ void mutt_FormatString (char *dest, /* output buffer */
prefix[0] = '\0';
destlen--; /* save room for the terminal \0 */
wlen = (flags & M_FORMAT_ARROWCURSOR && option (OPTARROWCURSOR)) ? 3 : 0;
wlen = ((flags & M_FORMAT_ARROWCURSOR) && option (OPTARROWCURSOR)) ? 3 : 0;
col += wlen;
if ((flags & M_FORMAT_NOFILTER) == 0)
......@@ -1142,7 +1142,7 @@ void mutt_FormatString (char *dest, /* output buffer */
col -= wlen; /* reset to passed in value */
wptr = dest; /* reset write ptr */
wlen = (flags & M_FORMAT_ARROWCURSOR && option (OPTARROWCURSOR)) ? 3 : 0;
wlen = ((flags & M_FORMAT_ARROWCURSOR) && option (OPTARROWCURSOR)) ? 3 : 0;
if ((pid = mutt_create_filter(command->data, NULL, &filter, NULL)) != -1)
{
int rc;
......@@ -1312,7 +1312,7 @@ void mutt_FormatString (char *dest, /* output buffer */
}
else if (soft && pad < 0)
{
int offset = (flags & M_FORMAT_ARROWCURSOR && option (OPTARROWCURSOR)) ? 3 : 0;
int offset = ((flags & M_FORMAT_ARROWCURSOR) && option (OPTARROWCURSOR)) ? 3 : 0;
/* \0-terminate dest for length computation in mutt_wstr_trunc() */
*wptr = 0;
/* make sure right part is at most as wide as display */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment