summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Longeau <chl@cvs.openbsd.org>2014-10-26 14:43:04 +0000
committerCharles Longeau <chl@cvs.openbsd.org>2014-10-26 14:43:04 +0000
commitf6432cb756db8d14354ab101cf1b183f06bbed59 (patch)
tree397607d51b627c11d94b277341a69eb43c74228b
parent472a9eaaa6ec29f39a4031837ee56a935d0689bd (diff)
remove unused variables
ok schwarze@
-rw-r--r--usr.bin/netstat/inet.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.bin/netstat/inet.c b/usr.bin/netstat/inet.c
index 8ce93c6b87f..54f1bd57a27 100644
--- a/usr.bin/netstat/inet.c
+++ b/usr.bin/netstat/inet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: inet.c,v 1.135 2014/10/23 16:45:57 schwarze Exp $ */
+/* $OpenBSD: inet.c,v 1.136 2014/10/26 14:43:03 chl Exp $ */
/* $NetBSD: inet.c,v 1.14 1995/10/03 21:42:37 thorpej Exp $ */
/*
@@ -814,9 +814,6 @@ inetname(struct in_addr *inp)
}
cp = NULL;
if (!nflag && inp->s_addr != INADDR_ANY) {
- int net = inet_netof(*inp);
- int lna = inet_lnaof(*inp);
-
hp = gethostbyaddr((char *)inp, sizeof (*inp), AF_INET);
if (hp) {
if ((cp = strchr(hp->h_name, '.')) &&