diff options
author | bde <bde@FreeBSD.org> | 1996-06-08 08:19:03 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1996-06-08 08:19:03 +0000 |
commit | 11d257651da74ba5cbe2ef53e48cb48b442da014 (patch) | |
tree | 3b9bca5073ac6e148e368b3f541dea769969481d /sys/net | |
parent | 2aabf9403776db6ad169efb7b6d1bc783e05f5d9 (diff) | |
download | FreeBSD-src-11d257651da74ba5cbe2ef53e48cb48b442da014.zip FreeBSD-src-11d257651da74ba5cbe2ef53e48cb48b442da014.tar.gz |
Changed some memcpy()'s back to bcopy()'s.
gcc only inlines memcpy()'s whose count is constant and didn't inline
these. I want memcpy() in the kernel go away so that it's obvious that
it doesn't need to be optimized. Now it is only used for one struct
copy in si.c.
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/bpf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c index e903b68..c335ea0 100644 --- a/sys/net/bpf.c +++ b/sys/net/bpf.c @@ -37,7 +37,7 @@ * * @(#)bpf.c 8.2 (Berkeley) 3/28/94 * - * $Id: bpf.c,v 1.24 1996/04/07 17:32:23 bde Exp $ + * $Id: bpf.c,v 1.25 1996/06/08 06:12:58 davidg Exp $ */ #include "bpfilter.h" @@ -1100,7 +1100,7 @@ bpf_mcopy(src_arg, dst_arg, len) if (m == 0) panic("bpf_mcopy"); count = min(m->m_len, len); - (void)memcpy((caddr_t)dst, mtod(m, caddr_t), count); + bcopy(mtod(m, void *), dst, count); m = m->m_next; dst += count; len -= count; |