From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id CBB193858407; Fri, 9 Feb 2024 17:29:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CBB193858407 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1707499789; bh=zsa9VGvLfD6dudIi5ww9yYFgvQuxs0bjoM3sb4PjuxU=; h=From:To:Subject:Date:From; b=REkJKnqe2hsFh6lh/z8eLH+TPpoJ+wlz8DRUVY+6yreUWrXygjktyc92t0HcYCPFR KYrgNtu06ZNRA/jUC9Mq6BTfxij4XaUGVYIsyKXzuOzqm92TIh6LFs/udaahc+35Qu 9o+EoBSQmjK1E6cTgvY0ztZT53VqtnpNidQ+KDDk= 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: cf35062ce9c4a85996f4c0b989a1b0fbb1dd9033 X-Git-Newrev: 003ff802ab1ffe0ee2f4aed158207765f3e3a7c6 Message-Id: <20240209172949.CBB193858407@sourceware.org> Date: Fri, 9 Feb 2024 17:29:49 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=003ff802ab1ffe0ee2f4aed158207765f3e3a7c6 commit 003ff802ab1ffe0ee2f4aed158207765f3e3a7c6 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");