diff --git a/usr.sbin/trpt/trpt.c b/usr.sbin/trpt/trpt.c index 2d740baf05ab..6339776a59d5 100644 --- a/usr.sbin/trpt/trpt.c +++ b/usr.sbin/trpt/trpt.c @@ -304,7 +304,11 @@ void tcp_trace(act, ostate, tp, family, ip, th, req) short act, ostate; struct tcpcb *tp; +#ifdef INET6 int family; +#else + int family __unused; +#endif void *ip; struct tcphdr *th; int req;