From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 99F60382DC79; Thu, 28 Sep 2023 17:50:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 99F60382DC79 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1695923411; bh=RfxbQP7oXhHwYP2M41NT1rJL4pzMgtuRQhF5VySeakI=; h=From:To:Subject:Date:From; b=Yv++A5reLhn5TMw7p9Zq4Bn4ptDioDflp7OkNklDAYOsVXQdRHUzQCI02Mm8ZVgxU pDV49QbT9h30MmD/Tpz/SJTi3wQQytAb1dZCbl10tK7DDuZYCPDkjGP4rWhQvkuYIT iaGQU20yl3DeNXsRMdkBVD9HXsqRS6Td/gX1XHzw= 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: 8f7dcf1d25101403e1fe83c8b5c882ee4287843b X-Git-Newrev: 87db8df7028b379970acc68cddd4f578adae166a Message-Id: <20230928175011.99F60382DC79@sourceware.org> Date: Thu, 28 Sep 2023 17:50:11 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=87db8df7028b379970acc68cddd4f578adae166a commit 87db8df7028b379970acc68cddd4f578adae166a 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");