From a83add346b3842070ff2618120cdf6057ea64cbc Mon Sep 17 00:00:00 2001 From: jsg Date: Sat, 29 Jun 2024 12:09:51 +0000 Subject: [PATCH] remove unused vars --- sbin/ifconfig/ifconfig.c | 6 +----- 1 file changed, 1 insertion(+), 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) -- 2.20.1