]> granicus.if.org Git - neomutt/commitdiff
Remove parentheses from return statements 1281/head
authorRichard Russon <rich@flatcap.org>
Thu, 19 Jul 2018 10:43:37 +0000 (11:43 +0100)
committerRichard Russon <rich@flatcap.org>
Thu, 19 Jul 2018 10:47:17 +0000 (11:47 +0100)
commands.c
mutt_thread.c
ncrypt/crypt_gpgme.c
nntp/nntp.c

index 7e97d7223cb0505829038288c2f5ea702dcecc0b..259e7c8da3e8f4260ca95fea8c49e86b13129a04 100644 (file)
@@ -648,7 +648,7 @@ int mutt_select_sort(int reverse)
     new_sort |= SORT_REVERSE;
 
   Sort = new_sort;
-  return (Sort != method ? 0 : -1); /* no need to resort if it's the same */
+  return (Sort != method) ? 0 : -1; /* no need to resort if it's the same */
 }
 
 /**
index 22b096967f4f19ac856205090be35fa82452b583..0233ecd03db6152fef869c845162b59a881fc36f 100644 (file)
@@ -574,8 +574,8 @@ static int compare_threads(const void *a, const void *b)
 
   if (a && b)
   {
-    return ((*sort_func)(&(*((struct MuttThread **) a))->sort_key,
-                         &(*((struct MuttThread **) b))->sort_key));
+    return (*sort_func)(&(*((struct MuttThread **) a))->sort_key,
+                        &(*((struct MuttThread **) b))->sort_key);
   }
   /* a hack to let us reset sort_func even though we can't
    * have extra arguments because of qsort
index 3cf276c32e9e6c1a0dff12ebaceb75dc345f1817..52cf1457fbf4d6abc649b1da58f7a15090359c0d 100644 (file)
@@ -3163,8 +3163,8 @@ static int compare_key_address(const void *a, const void *b)
 
 static int crypt_compare_address(const void *a, const void *b)
 {
-  return ((PgpSortKeys & SORT_REVERSE) ? !compare_key_address(a, b) :
-                                         compare_key_address(a, b));
+  return (PgpSortKeys & SORT_REVERSE) ? !compare_key_address(a, b) :
+                                        compare_key_address(a, b);
 }
 
 /**
@@ -3277,8 +3277,8 @@ static int compare_key_trust(const void *a, const void *b)
 
 static int crypt_compare_trust(const void *a, const void *b)
 {
-  return ((PgpSortKeys & SORT_REVERSE) ? !compare_key_trust(a, b) :
-                                         compare_key_trust(a, b));
+  return (PgpSortKeys & SORT_REVERSE) ? !compare_key_trust(a, b) :
+                                        compare_key_trust(a, b);
 }
 
 /**
index a9425c081304f84180fec0cb4b3eec2c28935d1c..0251d060e789394e1147c736f9a56282c6d402fb 100644 (file)
@@ -2622,7 +2622,7 @@ int nntp_compare_order(const void *a, const void *b)
   anum_t nb = NHDR(*hb)->article_num;
   int result = (na == nb) ? 0 : (na > nb) ? 1 : -1;
   result = perform_auxsort(result, a, b);
-  return (SORTCODE(result));
+  return SORTCODE(result);
 }
 
 // clang-format off