aboutsummaryrefslogtreecommitdiff
path: root/sunrpc/clnt_simp.c
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2024-11-16 16:51:31 +0100
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-11-25 16:45:59 -0300
commit53fcdf5f743aa9b02972eec658e66f96d6a63386 (patch)
treee1bd3ed90d89027abe4b8ba6f0dbffd833f08a9b /sunrpc/clnt_simp.c
parent83d4b42ded712bbbc22ceeefe886b8315190da5b (diff)
downloadglibc-53fcdf5f743aa9b02972eec658e66f96d6a63386.tar.xz
glibc-53fcdf5f743aa9b02972eec658e66f96d6a63386.zip
Silence most -Wzero-as-null-pointer-constant diagnostics
Replace 0 by NULL and {0} by {}. Omit a few cases that aren't so trivial to fix. Link: <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117059> Link: <https://software.codidact.com/posts/292718/292759#answer-292759> Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'sunrpc/clnt_simp.c')
-rw-r--r--sunrpc/clnt_simp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sunrpc/clnt_simp.c b/sunrpc/clnt_simp.c
index fab61d2170..ee77af9cbc 100644
--- a/sunrpc/clnt_simp.c
+++ b/sunrpc/clnt_simp.c
@@ -60,10 +60,10 @@ callrpc (const char *host, u_long prognum, u_long versnum, u_long procnum,
enum clnt_stat clnt_stat;
struct timeval timeout, tottimeout;
- if (crp == 0)
+ if (crp == NULL)
{
crp = (struct callrpc_private_s *) calloc (1, sizeof (*crp));
- if (crp == 0)
+ if (crp == NULL)
return 0;
callrpc_private = crp;
}