From cfe6e570a26d0753d66b0503f53a8b851aa19097 Mon Sep 17 00:00:00 2001 From: deraadt Date: Tue, 26 Jan 2021 18:22:35 +0000 Subject: [PATCH] sockb variable is unused (and even worse, was common unused) --- usr.bin/netstat/inet.c | 3 +-- usr.bin/netstat/inet6.c | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/usr.bin/netstat/inet.c b/usr.bin/netstat/inet.c index c6ec841e82a..5bb853606ef 100644 --- a/usr.bin/netstat/inet.c +++ b/usr.bin/netstat/inet.c @@ -1,4 +1,4 @@ -/* $OpenBSD: inet.c,v 1.170 2021/01/17 05:23:34 visa Exp $ */ +/* $OpenBSD: inet.c,v 1.171 2021/01/26 18:22:35 deraadt Exp $ */ /* $NetBSD: inet.c,v 1.14 1995/10/03 21:42:37 thorpej Exp $ */ /* @@ -87,7 +87,6 @@ struct inpcb inpcb; struct tcpcb tcpcb; -struct socket sockb; char *inetname(struct in_addr *); void inetprint(struct in_addr *, in_port_t, const char *, int); diff --git a/usr.bin/netstat/inet6.c b/usr.bin/netstat/inet6.c index 10cb26bb6e4..6f307e68d86 100644 --- a/usr.bin/netstat/inet6.c +++ b/usr.bin/netstat/inet6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: inet6.c,v 1.54 2019/12/08 11:08:22 sashan Exp $ */ +/* $OpenBSD: inet6.c,v 1.55 2021/01/26 18:22:35 deraadt Exp $ */ /* BSDI inet.c,v 2.3 1995/10/24 02:19:29 prb Exp */ /* * Copyright (c) 1983, 1988, 1993 @@ -59,8 +59,6 @@ #include #include "netstat.h" -struct socket sockb; - char *inet6name(struct in6_addr *); static char *ip6nh[] = { -- 2.20.1