From: jsg Date: Sat, 29 Jun 2024 12:09:51 +0000 (+0000) Subject: remove unused vars X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a83add346b3842070ff2618120cdf6057ea64cbc;p=openbsd remove unused vars --- 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)