diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-09-11 03:27:04 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-09-11 03:27:04 +0000 |
commit | 054578cdcb9492f885869f1af32b3b1ba17d007d (patch) | |
tree | d67571689139e22dbbd6a91296d16717ed2f599f /sys | |
parent | 56e3a3185b3ebe2ac46684e60e86252fa598dd9c (diff) |
fix pointer signedness mixup.
Diffstat (limited to 'sys')
-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 |