summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_output.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1996-06-08 08:19:03 +0000
committerbde <bde@FreeBSD.org>1996-06-08 08:19:03 +0000
commit11d257651da74ba5cbe2ef53e48cb48b442da014 (patch)
tree3b9bca5073ac6e148e368b3f541dea769969481d /sys/netinet/tcp_output.c
parent2aabf9403776db6ad169efb7b6d1bc783e05f5d9 (diff)
downloadFreeBSD-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/tcp_output.c')
-rw-r--r--sys/netinet/tcp_output.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c
index f4d03f1..4297cd2 100644
--- a/sys/netinet/tcp_output.c
+++ b/sys/netinet/tcp_output.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)tcp_output.c 8.4 (Berkeley) 5/24/95
- * $Id: tcp_output.c,v 1.19 1996/03/11 15:13:32 davidg Exp $
+ * $Id: tcp_output.c,v 1.20 1996/04/15 03:46:32 davidg Exp $
*/
#include <sys/param.h>
@@ -560,7 +560,7 @@ send:
ti->ti_seq = htonl(tp->snd_max);
ti->ti_ack = htonl(tp->rcv_nxt);
if (optlen) {
- (void)memcpy(ti + 1, opt, optlen);
+ bcopy(opt, ti + 1, optlen);
ti->ti_off = (sizeof (struct tcphdr) + optlen) >> 2;
}
ti->ti_flags = flags;
OpenPOWER on IntegriCloud