summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_input.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r--sys/netinet/tcp_input.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index 7800291b3e8..6617d20e100 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_input.c,v 1.123 2002/09/05 23:37:35 itojun Exp $ */
+/* $OpenBSD: tcp_input.c,v 1.124 2002/09/11 03:27:03 itojun Exp $ */
/* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */
/*
@@ -402,7 +402,7 @@ tcp_input(struct mbuf *m, ...)
{
struct ip *ip;
struct inpcb *inp;
- caddr_t optp = NULL;
+ u_int8_t *optp = NULL;
int optlen = 0;
int len, tlen, off;
struct tcpcb *tp = 0;
@@ -628,7 +628,7 @@ tcp_input(struct mbuf *m, ...)
th = (struct tcphdr *)(mtod(m, caddr_t) + iphlen);
}
optlen = off - sizeof(struct tcphdr);
- optp = mtod(m, caddr_t) + iphlen + sizeof(struct tcphdr);
+ optp = mtod(m, u_int8_t *) + iphlen + sizeof(struct tcphdr);
/*
* Do quick retrieval of timestamp options ("options
* prediction?"). If timestamp is the only option and it's