diff options
author | 2018-06-11 21:23:34 +0000 | |
---|---|---|
committer | 2018-06-11 21:23:34 +0000 | |
commit | 202427869f2a9993db284aa6f5c0af49b71f2edd (patch) | |
tree | 39f39abaea5676889bcd40150b336e5e2756e531 /sys/netinet/tcp_debug.c | |
parent | Fix an off-by-one line count when using include statements. (diff) | |
download | wireguard-openbsd-202427869f2a9993db284aa6f5c0af49b71f2edd.tar.xz wireguard-openbsd-202427869f2a9993db284aa6f5c0af49b71f2edd.zip |
Fix RAMDISK build by removing an #ifdef INET6 in tcp_trace().
found the hard way by krw@
Diffstat (limited to 'sys/netinet/tcp_debug.c')
-rw-r--r-- | sys/netinet/tcp_debug.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/netinet/tcp_debug.c b/sys/netinet/tcp_debug.c index 8997019dabd..4ebf9321421 100644 --- a/sys/netinet/tcp_debug.c +++ b/sys/netinet/tcp_debug.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_debug.c,v 1.27 2018/06/11 07:40:26 bluhm Exp $ */ +/* $OpenBSD: tcp_debug.c,v 1.28 2018/06/11 21:23:34 bluhm Exp $ */ /* $NetBSD: tcp_debug.c,v 1.10 1996/02/13 23:43:36 christos Exp $ */ /* @@ -120,10 +120,8 @@ tcp_trace(short act, short ostate, struct tcpcb *tp, struct tcpcb *otp, int pf = PF_UNSPEC; struct tcp_debug *td = &tcp_debug[tcp_debx++]; struct tcpiphdr *ti = (struct tcpiphdr *)headers; - struct tcphdr *th; -#ifdef INET6 struct tcpipv6hdr *ti6 = (struct tcpipv6hdr *)headers; -#endif + struct tcphdr *th; if (tcp_debx == TCP_NDEBUG) tcp_debx = 0; |