aboutsummaryrefslogtreecommitdiff
path: root/lib/imap.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2013-09-04 22:32:57 +0200
committerDaniel Stenberg <daniel@haxx.se>2013-09-04 22:33:29 +0200
commite9de8e78f0a73c5fa7e0a7aba6b85f3d8afa76d9 (patch)
tree4d28554b767e917ea412bb81309b920fd4f93c8a /lib/imap.c
parent2eabb7d590aaa14c211e3a306582ff36fc3fc0f5 (diff)
SASL: fix compiler warnings
comparison between signed and unsigned integer expressions suggest parentheses around '&&' within '||' (twice)
Diffstat (limited to 'lib/imap.c')
-rw-r--r--lib/imap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/imap.c b/lib/imap.c
index 6b6d4ce45..220708785 100644
--- a/lib/imap.c
+++ b/lib/imap.c
@@ -579,9 +579,9 @@ static CURLcode imap_perform_authenticate(struct connectdata *conn)
}
else
#endif
- if((imapc->authmechs & SASL_MECH_XOAUTH2) &&
- (imapc->prefmech & SASL_MECH_XOAUTH2) &&
- (imapc->prefmech != SASL_AUTH_ANY) || conn->xoauth2_bearer) {
+ if(((imapc->authmechs & SASL_MECH_XOAUTH2) &&
+ (imapc->prefmech & SASL_MECH_XOAUTH2) &&
+ (imapc->prefmech != SASL_AUTH_ANY)) || conn->xoauth2_bearer) {
mech = "XOAUTH2";
state1 = IMAP_AUTHENTICATE_XOAUTH2;
state2 = IMAP_AUTHENTICATE_FINAL;