From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id E11F53858D32; Mon, 29 Jan 2024 17:55:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E11F53858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1706550922; bh=gM9jXxkkQgSrcJCFc7NDse4OEvR4gfKMoiwaUBxmTMg=; h=From:To:Subject:Date:From; b=S8F7bRpcAFk3Pdl8yeOrl9JGvjWK1IAL2l0C3bzu37gKTO9ec8rHZnbi0vxaz9h9K Q6C/Z8jFf8VnNFnHGlnNujpEqJfQOfxSABX/c0JxQns6DrvG3qEC3paYRNfS55tLfX AqSTCFRWU4JNUJKgHeoNMezJcpdMeQxSa0Xzj3+c= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc/azanella/clang] sunrpc: Remove extra parenthesis on comparison X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/azanella/clang X-Git-Oldrev: a4e99e17b866783cd6998b6afd2be078a4849eef X-Git-Newrev: f284740a9701e738e025554c61193fbaf8fd3b5d Message-Id: <20240129175522.E11F53858D32@sourceware.org> Date: Mon, 29 Jan 2024 17:55:22 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=f284740a9701e738e025554c61193fbaf8fd3b5d commit f284740a9701e738e025554c61193fbaf8fd3b5d Author: Adhemerval Zanella Date: Thu Mar 10 08:34:01 2022 -0300 sunrpc: Remove extra parenthesis on comparison clang issues a 'equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality]' in this. Instead of suppress the warning, just follow the next comparison style. Diff: --- sunrpc/key_call.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sunrpc/key_call.c b/sunrpc/key_call.c index b0b29e09a7..1072c97015 100644 --- a/sunrpc/key_call.c +++ b/sunrpc/key_call.c @@ -456,7 +456,7 @@ getkeyserv_handle (int vers) return kcp->client; } - if ((kcp->client == (CLIENT *) NULL)) + if (kcp->client == (CLIENT *) NULL) /* Use the AF_UNIX transport */ kcp->client = clnt_create ("/var/run/keyservsock", KEY_PROG, vers, "unix");