diff options
author | Charles Longeau <chl@cvs.openbsd.org> | 2014-05-10 21:21:10 +0000 |
---|---|---|
committer | Charles Longeau <chl@cvs.openbsd.org> | 2014-05-10 21:21:10 +0000 |
commit | aff66a80485cea2f7e004799f40b0229598f1e3c (patch) | |
tree | ba889abc2db65e8a2c1533a503ebe58105e97559 /lib | |
parent | 4b59e81bea53cec8be59e0d4b283892652ad55f3 (diff) |
remove warning by adding explicit parentheses around && within ||
ok sperreault@
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/asr/getaddrinfo_async.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/asr/getaddrinfo_async.c b/lib/libc/asr/getaddrinfo_async.c index 00ed6a1dffc..94b071ae052 100644 --- a/lib/libc/asr/getaddrinfo_async.c +++ b/lib/libc/asr/getaddrinfo_async.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getaddrinfo_async.c,v 1.27 2014/04/28 21:38:59 sperreault Exp $ */ +/* $OpenBSD: getaddrinfo_async.c,v 1.28 2014/05/10 21:21:09 chl Exp $ */ /* * Copyright (c) 2012 Eric Faurot <eric@openbsd.org> * @@ -219,9 +219,9 @@ getaddrinfo_async_run(struct asr_query *as, struct asr_result *ar) v6 = 1; } freeifaddrs(ifa0); - if (ai->ai_family == PF_UNSPEC && !v4 && !v6 || - ai->ai_family == PF_INET && !v4 || - ai->ai_family == PF_INET6 && !v6) { + if ((ai->ai_family == PF_UNSPEC && !v4 && !v6) || + (ai->ai_family == PF_INET && !v4) || + (ai->ai_family == PF_INET6 && !v6)) { ar->ar_gai_errno = EAI_NONAME; async_set_state(as, ASR_STATE_HALT); break; |