From 11d257651da74ba5cbe2ef53e48cb48b442da014 Mon Sep 17 00:00:00 2001 From: bde Date: Sat, 8 Jun 1996 08:19:03 +0000 Subject: 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. --- sys/net/bpf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/net') 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; -- cgit v1.1