bcopy -> memcpy
This commit is contained in:
parent
f2f13262df
commit
1071f796f4
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: subr_userconf.c,v 1.3 2001/07/03 08:06:40 itojun Exp $ */
|
||||
/* $NetBSD: subr_userconf.c,v 1.4 2001/07/18 06:51:38 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996 Mats O Jansson <moj@stacken.kth.se>
|
||||
|
@ -154,8 +154,8 @@ userconf_hist_int(val)
|
|||
{
|
||||
sprintf(userconf_histbuf," %d",val);
|
||||
if ((userconf_histcur + strlen(userconf_histbuf)) < userconf_histsz) {
|
||||
bcopy(userconf_histbuf,
|
||||
&userconf_history[userconf_histcur],
|
||||
memcpy(&userconf_history[userconf_histcur],
|
||||
userconf_histbuf,
|
||||
strlen(userconf_histbuf));
|
||||
userconf_histcur = userconf_histcur + strlen(userconf_histbuf);
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: sys_pipe.c,v 1.9 2001/07/18 06:48:27 thorpej Exp $ */
|
||||
/* $NetBSD: sys_pipe.c,v 1.10 2001/07/18 06:51:38 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996 John S. Dyson
|
||||
|
@ -840,8 +840,8 @@ pipe_clone_write_buffer(wpipe)
|
|||
|
||||
size = wpipe->pipe_map.cnt;
|
||||
pos = wpipe->pipe_map.pos;
|
||||
bcopy((caddr_t) wpipe->pipe_map.kva + pos,
|
||||
(caddr_t) wpipe->pipe_buffer.buffer, size);
|
||||
memcpy((caddr_t) wpipe->pipe_buffer.buffer,
|
||||
(caddr_t) wpipe->pipe_map.kva + pos, size);
|
||||
|
||||
wpipe->pipe_buffer.in = size;
|
||||
wpipe->pipe_buffer.out = 0;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: uipc_mbuf2.c,v 1.6 2001/02/14 17:09:19 itojun Exp $ */
|
||||
/* $NetBSD: uipc_mbuf2.c,v 1.7 2001/07/18 06:51:38 thorpej Exp $ */
|
||||
/* $KAME: uipc_mbuf2.c,v 1.29 2001/02/14 13:42:10 itojun Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -182,7 +182,7 @@ m_pulldown(m, off, len, offp)
|
|||
!sharedcluster) {
|
||||
n->m_next->m_data -= hlen;
|
||||
n->m_next->m_len += hlen;
|
||||
bcopy(mtod(n, caddr_t) + off, mtod(n->m_next, caddr_t), hlen);
|
||||
memcpy(mtod(n->m_next, caddr_t), mtod(n, caddr_t) + off, hlen);
|
||||
n->m_len -= hlen;
|
||||
n = n->m_next;
|
||||
off = 0;
|
||||
|
@ -207,7 +207,7 @@ m_pulldown(m, off, len, offp)
|
|||
}
|
||||
/* get hlen from <n, off> into <o, 0> */
|
||||
o->m_len = hlen;
|
||||
bcopy(mtod(n, caddr_t) + off, mtod(o, caddr_t), hlen);
|
||||
memcpy(mtod(o, caddr_t), mtod(n, caddr_t) + off, hlen);
|
||||
n->m_len -= hlen;
|
||||
/* get tlen from <n->m_next, 0> into <o, hlen> */
|
||||
m_copydata(n->m_next, 0, tlen, mtod(o, caddr_t) + o->m_len);
|
||||
|
|
Loading…
Reference in New Issue