summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2021-01-26 18:22:35 +0000
committerderaadt <deraadt@openbsd.org>2021-01-26 18:22:35 +0000
commitcfe6e570a26d0753d66b0503f53a8b851aa19097 (patch)
tree325db1ee60f8b5a56593a7a6cc243fdda3361e3c
parentsatisfy -fno-common, by (1) copying all the variable decls from (diff)
downloadwireguard-openbsd-cfe6e570a26d0753d66b0503f53a8b851aa19097.tar.xz
wireguard-openbsd-cfe6e570a26d0753d66b0503f53a8b851aa19097.zip
sockb variable is unused (and even worse, was common unused)
-rw-r--r--usr.bin/netstat/inet.c3
-rw-r--r--usr.bin/netstat/inet6.c4
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 <limits.h>
#include "netstat.h"
-struct socket sockb;
-
char *inet6name(struct in6_addr *);
static char *ip6nh[] = {