mirror of git://sourceware.org/git/glibc.git
sunrpc: Remove extra parenthesis on comparison
clang issues: key_call.c:459:20: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality] 459 | if ((kcp->client == (CLIENT *) NULL)) Instead of suppress the warning, just use the more usual comparison style. Reviewed-by: Sam James <sam@gentoo.org>
This commit is contained in:
parent
64a0f4b776
commit
f6d559f2f1
|
|
@ -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");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue