diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-07-20 06:12:54 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-07-20 06:12:54 +0000 |
commit | 2bcfdb7b9e293be149714b1668edc3bda1b0bd75 (patch) | |
tree | cbe2be21ccd0580479aff807edf32c092c622e6c /lib/libc/rpc/clnt_simple.c | |
parent | 59eb67d03202824bfd170086d1a7c42a58eb21a0 (diff) |
bcopy->memcpy & tag
Diffstat (limited to 'lib/libc/rpc/clnt_simple.c')
-rw-r--r-- | lib/libc/rpc/clnt_simple.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/rpc/clnt_simple.c b/lib/libc/rpc/clnt_simple.c index 262df615229..1405406e7d7 100644 --- a/lib/libc/rpc/clnt_simple.c +++ b/lib/libc/rpc/clnt_simple.c @@ -1,3 +1,4 @@ +/* $OpenBSD: clnt_simple.c,v 1.2 1996/07/20 06:12:23 deraadt Exp $ */ /* $NetBSD: clnt_simple.c,v 1.5 1995/06/03 22:37:23 mycroft Exp $ */ /* @@ -32,7 +33,7 @@ #if defined(LIBC_SCCS) && !defined(lint) /*static char *sccsid = "from: @(#)clnt_simple.c 1.35 87/08/11 Copyr 1984 Sun Micro";*/ /*static char *sccsid = "from: @(#)clnt_simple.c 2.2 88/08/01 4.0 RPCSRC";*/ -static char *rcsid = "$NetBSD: clnt_simple.c,v 1.5 1995/06/03 22:37:23 mycroft Exp $"; +static char *rcsid = "$OpenBSD: clnt_simple.c,v 1.2 1996/07/20 06:12:23 deraadt Exp $"; #endif /* @@ -94,7 +95,7 @@ callrpc(host, prognum, versnum, procnum, inproc, in, outproc, out) timeout.tv_usec = 0; timeout.tv_sec = 5; memset(&server_addr, 0, sizeof(server_addr)); - bcopy(hp->h_addr, (char *)&server_addr.sin_addr, hp->h_length); + memcpy((char *)&server_addr.sin_addr, hp->h_addr, hp->h_length); server_addr.sin_len = sizeof(struct sockaddr_in); server_addr.sin_family = AF_INET; server_addr.sin_port = 0; |