From 3d7e64fd2a1e226a5169c2fde2852bfcca07845f Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Mon, 20 Nov 2006 23:47:52 +0100 Subject: [PATCH] Use memset instead of __bzero. bzero has been deprecated for years (and anything starting with __ is an internal function anyhow), and __bzero seems to have broken on ia64 not too long ago. Signed-off-by: Neil Brown --- support/nfs/svc_socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/nfs/svc_socket.c b/support/nfs/svc_socket.c index c41a1a3..d712cab 100644 --- a/support/nfs/svc_socket.c +++ b/support/nfs/svc_socket.c @@ -64,7 +64,7 @@ svc_socket (u_long number, int type, int protocol, int reuse) } } - __bzero ((char *) &addr, sizeof (addr)); + memset (&addr, 0, sizeof (addr)); addr.sin_family = AF_INET; ret = getrpcbynumber_r (number, &rpcbuf, rpcdata, sizeof rpcdata, -- 2.39.5