summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2024-06-29 12:09:52 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2024-06-29 12:09:52 +0000
commitaff3d9f999472d23c8a4bbdda60b6673a1b03be9 (patch)
tree1f7541a378e247ae4a56f45da1af58ab9d893d18 /sbin
parentbc36d772b378b8de015b1f7c42f6675e21f18538 (diff)
remove unused vars
Diffstat (limited to 'sbin')
-rw-r--r--sbin/ifconfig/ifconfig.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c
index 3e44dce7120..e3b925fbcd5 100644
--- a/sbin/ifconfig/ifconfig.c
+++ b/sbin/ifconfig/ifconfig.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ifconfig.c,v 1.473 2024/06/09 16:25:27 jan Exp $ */
+/* $OpenBSD: ifconfig.c,v 1.474 2024/06/29 12:09:51 jsg Exp $ */
/* $NetBSD: ifconfig.c,v 1.40 1997/10/01 02:19:43 enami Exp $ */
/*
@@ -3209,10 +3209,6 @@ print_tunnel(const struct if_laddrreq *req)
printf(":%s", psrcport);
if (req->dstaddr.ss_family != AF_UNSPEC) {
- in_port_t dstport = 0;
- const struct sockaddr_in *sin;
- const struct sockaddr_in6 *sin6;
-
if (getnameinfo((struct sockaddr *)&req->dstaddr,
req->dstaddr.ss_len, pdstaddr, sizeof(pdstaddr),
pdstport, sizeof(pdstport), niflag) != 0)