From: jsg Date: Fri, 8 Jul 2022 07:04:54 +0000 (+0000) Subject: remove unused variables X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4e688912392fe17d3423900c53adf08db876a6ac;p=openbsd remove unused variables --- diff --git a/sbin/ifconfig/brconfig.c b/sbin/ifconfig/brconfig.c index dcd6496af0a..b82d5d7b3e7 100644 --- a/sbin/ifconfig/brconfig.c +++ b/sbin/ifconfig/brconfig.c @@ -1,4 +1,4 @@ -/* $OpenBSD: brconfig.c,v 1.30 2021/11/11 09:39:16 claudio Exp $ */ +/* $OpenBSD: brconfig.c,v 1.31 2022/07/08 07:04:54 jsg Exp $ */ /* * Copyright (c) 1999, 2000 Jason L. Wright (jason@thought.net) @@ -560,7 +560,6 @@ void bridge_maxaddr(const char *arg, int d) { struct ifbrparam bp; - unsigned long newsize; const char *errstr; bp.ifbrp_csize = strtonum(arg, 0, UINT32_MAX, &errstr); diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c index ea3b29dbe2f..d1086816b0a 100644 --- a/sbin/ifconfig/ifconfig.c +++ b/sbin/ifconfig/ifconfig.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ifconfig.c,v 1.455 2022/06/27 15:11:23 jan Exp $ */ +/* $OpenBSD: ifconfig.c,v 1.456 2022/07/08 07:04:54 jsg Exp $ */ /* $NetBSD: ifconfig.c,v 1.40 1997/10/01 02:19:43 enami Exp $ */ /* @@ -158,10 +158,6 @@ struct in6_aliasreq in6_addreq; struct sockaddr_in netmask; #ifndef SMALL -struct ifaliasreq addreq; - -int wconfig = 0; -int wcwconfig = 0; int rdomainid; #endif /* SMALL */ @@ -1891,10 +1887,8 @@ void delifjoinlist(const char *val, int d) { struct ieee80211_join join; - int len; memset(&join, 0, sizeof(join)); - len = 0; join.i_flags |= (IEEE80211_JOIN_DEL | IEEE80211_JOIN_DEL_ALL); if (d == -1) { @@ -5996,8 +5990,6 @@ const struct umb_valdescr umb_regstate[] = MBIM_REGSTATE_DESCRIPTIONS; const struct umb_valdescr umb_dataclass[] = MBIM_DATACLASS_DESCRIPTIONS; const struct umb_valdescr umb_simstate[] = MBIM_SIMSTATE_DESCRIPTIONS; const struct umb_valdescr umb_istate[] = UMB_INTERNAL_STATE_DESCRIPTIONS; -const struct umb_valdescr umb_pktstate[] = MBIM_PKTSRV_STATE_DESCRIPTIONS; -const struct umb_valdescr umb_actstate[] = MBIM_ACTIVATION_STATE_DESCRIPTIONS; const struct umb_valdescr umb_classalias[] = { { MBIM_DATACLASS_GPRS | MBIM_DATACLASS_EDGE, "2g" },