summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2001-06-26 06:56:42 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2001-06-26 06:56:42 +0000
commit93d93e5b7fffb2c28906d66122ceb80fbb8bf49b (patch)
tree8534abcc92b856ec3ac9a74c8ace066cd64085fd /sys
parentde36c0a6348af48fbbf73a84d3d74fcca32493c3 (diff)
Appease gcc by not using void pointers in arithmetic operations.
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/tcp_subr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c
index 50a1e1aaa1c..1cf1bada291 100644
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_subr.c,v 1.48 2001/06/25 01:59:29 angelos Exp $ */
+/* $OpenBSD: tcp_subr.c,v 1.49 2001/06/26 06:56:41 aaron Exp $ */
/* $NetBSD: tcp_subr.c,v 1.22 1996/02/13 23:44:00 christos Exp $ */
/*
@@ -369,13 +369,13 @@ tcp_respond(tp, template, m, ack, seq, flags)
xchg(((struct ip6_hdr *)ti)->ip6_dst,\
((struct ip6_hdr *)ti)->ip6_src,\
struct in6_addr);
- th = (void *)ti + sizeof(struct ip6_hdr);
+ th = (void *)(ti + sizeof(struct ip6_hdr));
} else
#endif /* INET6 */
{
m->m_len = sizeof (struct tcpiphdr);
xchg(ti->ti_dst.s_addr, ti->ti_src.s_addr, u_int32_t);
- th = (void *)ti + sizeof(struct ip);
+ th = (void *)(ti + sizeof(struct ip));
}
xchg(th->th_dport, th->th_sport, u_int16_t);
#undef xchg