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/netinet/ip_input.c | |
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/netinet/ip_input.c')
-rw-r--r-- | sys/netinet/ip_input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index fe6e162..e7e2b42 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ip_input.c 8.2 (Berkeley) 1/4/94 - * $Id: ip_input.c,v 1.41 1996/04/12 09:24:22 phk Exp $ + * $Id: ip_input.c,v 1.42 1996/05/08 04:28:57 gpalmer Exp $ */ #include <sys/param.h> @@ -946,7 +946,7 @@ save_rte(option, dst) #endif if (olen > sizeof(ip_srcrt) - (1 + sizeof(dst))) return; - (void)memcpy(ip_srcrt.srcopt, option, olen); + bcopy(option, ip_srcrt.srcopt, olen); ip_nhops = (olen - IPOPT_OFFSET - 1) / sizeof(struct in_addr); ip_srcrt.dst = dst; } |