summaryrefslogtreecommitdiff
path: root/lib/libc/rpc/xdr_mem.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-07-20 06:12:54 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-07-20 06:12:54 +0000
commit2bcfdb7b9e293be149714b1668edc3bda1b0bd75 (patch)
treecbe2be21ccd0580479aff807edf32c092c622e6c /lib/libc/rpc/xdr_mem.c
parent59eb67d03202824bfd170086d1a7c42a58eb21a0 (diff)
bcopy->memcpy & tag
Diffstat (limited to 'lib/libc/rpc/xdr_mem.c')
-rw-r--r--lib/libc/rpc/xdr_mem.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/rpc/xdr_mem.c b/lib/libc/rpc/xdr_mem.c
index a1bbb866a4d..ea6c5978a36 100644
--- a/lib/libc/rpc/xdr_mem.c
+++ b/lib/libc/rpc/xdr_mem.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xdr_mem.c,v 1.2 1996/03/09 02:42:53 niklas Exp $ */
+/* $OpenBSD: xdr_mem.c,v 1.3 1996/07/20 06:12:50 deraadt Exp $ */
/* $NetBSD: xdr_mem.c,v 1.4 1996/02/08 08:06:05 mycroft Exp $ */
/*
@@ -147,7 +147,7 @@ xdrmem_getlong_unaligned(xdrs, lp)
if ((xdrs->x_handy -= sizeof(int32_t)) < 0)
return (FALSE);
- bcopy(xdrs->x_private, &l, sizeof(int32_t));
+ memcpy(&l, xdrs->x_private, sizeof(int32_t));
*lp = ntohl(l);
xdrs->x_private += sizeof(int32_t);
return (TRUE);
@@ -163,7 +163,7 @@ xdrmem_putlong_unaligned(xdrs, lp)
if ((xdrs->x_handy -= sizeof(int32_t)) < 0)
return (FALSE);
l = htonl(*lp);
- bcopy(&l, xdrs->x_private, sizeof(int32_t));
+ memcpy(xdrs->x_private, &l, sizeof(int32_t));
xdrs->x_private += sizeof(int32_t);
return (TRUE);
}
@@ -177,7 +177,7 @@ xdrmem_getbytes(xdrs, addr, len)
if ((xdrs->x_handy -= len) < 0)
return (FALSE);
- bcopy(xdrs->x_private, addr, len);
+ memcpy(addr, xdrs->x_private, len);
xdrs->x_private += len;
return (TRUE);
}
@@ -191,7 +191,7 @@ xdrmem_putbytes(xdrs, addr, len)
if ((xdrs->x_handy -= len) < 0)
return (FALSE);
- bcopy(addr, xdrs->x_private, len);
+ memcpy(xdrs->x_private, addr, len);
xdrs->x_private += len;
return (TRUE);
}