From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 20CB43857C53; Thu, 21 Dec 2023 18:51:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 20CB43857C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1703184719; bh=bnU45NaMtG9WbMJ+Oq/TnOymNC/4dkhCx6yD6FnmPiU=; h=From:To:Subject:Date:From; b=o9JgUEhTxK18C/yrP1R8pKOgn/jPiM+UIzHXH69WwzZEVLYs2upKygHQ1bE1OIlHF pHn3XXyAwHYkjbwHhyin6C77vtHBF2dmv/5s3sYgEmqRKlpqJ2ELBI0fqpOomlMP4s CYxAe5PqNKyaVweF7bIOkxpr72kYAk9pny+qwDVk= 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: 4edf9318955b276f0376cc66ccb06981ac6a82bb X-Git-Newrev: 8ef7704b5dd29e0603425f5ab2b681d258c3cdb2 Message-Id: <20231221185159.20CB43857C53@sourceware.org> Date: Thu, 21 Dec 2023 18:51:59 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=8ef7704b5dd29e0603425f5ab2b681d258c3cdb2 commit 8ef7704b5dd29e0603425f5ab2b681d258c3cdb2 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");