From: Steinar H. Gunderson Date: Mon, 20 Nov 2006 22:47:52 +0000 (+0100) Subject: Use memset instead of __bzero. X-Git-Tag: nfs-utils-1-0-11~22 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=3d7e64fd2a1e226a5169c2fde2852bfcca07845f;p=nfs-utils.git 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 --- 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,