From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 0388E3858297; Wed, 7 Feb 2024 14:05:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0388E3858297 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1707314711; bh=DjFps1sHReSYmNSwaK+ItWQweDZJL/Zuzv20Q10+CaU=; h=From:To:Subject:Date:From; b=FF+EPQm1SSbdcL+J8bXpFAxyNOvZ+Y2iZRasyb8BU5aIKtiG6HSa/NgOvVy4eXqdN xmJ6sOmezB9nC8IpqPYYhGV5M74sY+1PIZNkWIz7DddWVARNmSEh2ySgnrZtijvsKG IT7hPaKo6dQ2tdoidQxTEX/hTNtea5I1imk7/9Go= 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: 353a51546c1c6a60f440a5fb01886bb4472cc58d X-Git-Newrev: a76dd3555bd08c773887108f274dd92f4b41a615 Message-Id: <20240207140511.0388E3858297@sourceware.org> Date: Wed, 7 Feb 2024 14:05:10 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=a76dd3555bd08c773887108f274dd92f4b41a615 commit a76dd3555bd08c773887108f274dd92f4b41a615 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");