diff options
author | 2002-09-11 03:27:03 +0000 | |
---|---|---|
committer | 2002-09-11 03:27:03 +0000 | |
commit | e26abae3df1539ec2a3db57f41e41a4352155dd6 (patch) | |
tree | 4a9f9345142fce100e0874c7c12bcda036703443 /sys/netinet/tcp_input.c | |
parent | capture support (diff) | |
download | wireguard-openbsd-e26abae3df1539ec2a3db57f41e41a4352155dd6.tar.xz wireguard-openbsd-e26abae3df1539ec2a3db57f41e41a4352155dd6.zip |
fix pointer signedness mixup.
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r-- | sys/netinet/tcp_input.c | 6 |
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 |