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 */
}
/**
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
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);
}
/**
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);
}
/**
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