summaryrefslogtreecommitdiff
path: root/alpine/adrbkcmd.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2017-03-23 12:14:46 -0600
committerEduardo Chappa <chappa@washington.edu>2017-03-23 12:14:46 -0600
commit3f282795f86892929e970f779e339875a80132a7 (patch)
treeac3419a4782e562bbca1a114bc17a4a8ab99d349 /alpine/adrbkcmd.c
parent843b2f16abfd949e09b1c5465387b1b0f724994a (diff)
downloadalpine-3f282795f86892929e970f779e339875a80132a7.tar.xz
* clear out a few warnings when Alpine is built with clang.
Diffstat (limited to 'alpine/adrbkcmd.c')
-rw-r--r--alpine/adrbkcmd.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/alpine/adrbkcmd.c b/alpine/adrbkcmd.c
index 4ab80f0f..c6663405 100644
--- a/alpine/adrbkcmd.c
+++ b/alpine/adrbkcmd.c
@@ -6748,15 +6748,15 @@ _("\n \"^G\" for help specific to each item. \"^X\" to make the query, or \"^C\"
((*sq->locality != '\0') ? 1 : 0);
need_and = (categories > 1);
- if((sq->cn ? strlen(sq->cn) : 0 +
- sq->sn ? strlen(sq->sn) : 0 +
- sq->gn ? strlen(sq->gn) : 0 +
- sq->mail ? strlen(sq->mail) : 0 +
- sq->org ? strlen(sq->org) : 0 +
- sq->unit ? strlen(sq->unit) : 0 +
- sq->country ? strlen(sq->country) : 0 +
- sq->state ? strlen(sq->state) : 0 +
- sq->locality ? strlen(sq->locality) : 0) > FILTSIZE - 100){
+ if(((sq->cn ? strlen(sq->cn) : 0) +
+ (sq->sn ? strlen(sq->sn) : 0) +
+ (sq->gn ? strlen(sq->gn) : 0) +
+ (sq->mail ? strlen(sq->mail) : 0) +
+ (sq->org ? strlen(sq->org) : 0) +
+ (sq->unit ? strlen(sq->unit) : 0) +
+ (sq->country ? strlen(sq->country) : 0) +
+ (sq->state ? strlen(sq->state) : 0) +
+ (sq->locality ? strlen(sq->locality) : 0)) > FILTSIZE - 100){
if(error)
*error = cpystr(_("Search strings too long"));