From: chl Date: Sat, 10 May 2014 21:21:09 +0000 (+0000) Subject: remove warning by adding explicit parentheses around && within || X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b6432b685c79c18a4375fd13d015d64a70d0c3be;p=openbsd remove warning by adding explicit parentheses around && within || ok sperreault@ --- 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 * @@ -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;