From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 13833385841E; Wed, 17 Apr 2024 20:05:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 13833385841E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1713384334; bh=ZByxA+b7ChnDehshVGRWabhlnrMmHOdreXuPJO5wEmI=; h=From:To:Subject:Date:From; b=T+gdvKWeOIqqWorE1lUrjgT/Mi8O5KtrFyCBc7Qd61IjTAQFxka5tybNllympqQK7 IImBOblSYeQ3LooiRGyMllRGJHk/JQDIrfEZl1fCnLWxOohwWeSY+Uo6PYwm2npVlZ XCIc1caaqriyWL+MTDqAny5+Xc+QtYbjS/p008T8= 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: 2d94174fd1c2038498f7c2ee6aa1f4eef12201ac X-Git-Newrev: 5d3b33803f19e208b4c8744120fb84082ec2c625 Message-Id: <20240417200534.13833385841E@sourceware.org> Date: Wed, 17 Apr 2024 20:05:34 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=5d3b33803f19e208b4c8744120fb84082ec2c625 commit 5d3b33803f19e208b4c8744120fb84082ec2c625 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");