summaryrefslogtreecommitdiff
path: root/libc/inet/rpc/clnt_generic.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-03-18 11:28:51 +0000
committerEric Andersen <andersen@codepoet.org>2004-03-18 11:28:51 +0000
commitada7878ba0d097b798277aaa095e9d935a64fa99 (patch)
tree1d202eb0bb53ff5167d8ab91ac90e48034920438 /libc/inet/rpc/clnt_generic.c
parent0c91a787b60e3a8804c1001724b039a0b80c7bb4 (diff)
Based on a patch from Alexandre Oliva, remove all reference to 'bzero' (which
is not a SuSv3 symbol). Rather than using __bzero internally per Alexandre's original patch, use memset instead.
Diffstat (limited to 'libc/inet/rpc/clnt_generic.c')
-rw-r--r--libc/inet/rpc/clnt_generic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/inet/rpc/clnt_generic.c b/libc/inet/rpc/clnt_generic.c
index 79df33113..349c0f62d 100644
--- a/libc/inet/rpc/clnt_generic.c
+++ b/libc/inet/rpc/clnt_generic.c
@@ -63,7 +63,7 @@ clnt_create (const char *hostname, u_long prog, u_long vers,
if (strcmp (proto, "unix") == 0)
{
- bzero ((char *)&sun, sizeof (sun));
+ memset ((char *)&sun, 0, sizeof (sun));
sun.sun_family = AF_UNIX;
strcpy (sun.sun_path, hostname);
sock = RPC_ANYSOCK;
@@ -110,7 +110,7 @@ clnt_create (const char *hostname, u_long prog, u_long vers,
}
sin.sin_family = h->h_addrtype;
sin.sin_port = 0;
- bzero (sin.sin_zero, sizeof (sin.sin_zero));
+ memset (sin.sin_zero, 0, sizeof (sin.sin_zero));
memcpy ((char *) &sin.sin_addr, h->h_addr, h->h_length);
#warning getprotobyname is not reentrant... Add getprotobyname_r