]> granicus.if.org Git - neomutt/commitdiff
Silence some eclipse warnings
authorBrendan Cully <brendan@kublai.com>
Sat, 25 Jun 2011 22:23:05 +0000 (15:23 -0700)
committerBrendan Cully <brendan@kublai.com>
Sat, 25 Jun 2011 22:23:05 +0000 (15:23 -0700)
compose.c
muttlib.c

index 21a296c9deac96241f6026bc7fc49dcff512818c..3b7cb173067e368cd95209d6a2ad66848784c470 100644 (file)
--- a/compose.c
+++ b/compose.c
@@ -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)
index 2d01599d6654a0478d5bc4ec584e8ac6b63ab4cd..f93fccd573985ab3f2f87d7a05acaaf69658043f 100644 (file)
--- a/muttlib.c
+++ b/muttlib.c
@@ -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 */