artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0017e6e
)
convert one hot looking bcopy to memcpy
author
tedu
<tedu@openbsd.org>
Thu, 18 Dec 2014 21:00:12 +0000
(21:00 +0000)
committer
tedu
<tedu@openbsd.org>
Thu, 18 Dec 2014 21:00:12 +0000
(21:00 +0000)
sys/nfs/nfs_subs.c
patch
|
blob
|
history
diff --git
a/sys/nfs/nfs_subs.c
b/sys/nfs/nfs_subs.c
index
581facd
..
bd60a8f
100644
(file)
--- a/
sys/nfs/nfs_subs.c
+++ b/
sys/nfs/nfs_subs.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: nfs_subs.c,v 1.12
0 2014/12/18 20:59:21
tedu Exp $ */
+/* $OpenBSD: nfs_subs.c,v 1.12
1 2014/12/18 21:00:12
tedu Exp $ */
/* $NetBSD: nfs_subs.c,v 1.27.4.3 1996/07/08 20:34:24 jtc Exp $ */
/*
@@
-663,7
+663,7
@@
nfsm_mbuftouio(struct mbuf **mrep, struct uio *uiop, int siz, caddr_t *dpos)
}
xfer = (left > len) ? len : left;
if (uiop->uio_segflg == UIO_SYSSPACE)
-
bcopy(mbufcp, uio
cp, xfer);
+
memcpy(uiocp, mbuf
cp, xfer);
else
copyout(mbufcp, uiocp, xfer);
left -= xfer;