diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-07-08 07:04:55 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-07-08 07:04:55 +0000 |
commit | ba1e2c36da1adb1c48ef297a97c689968860b0e2 (patch) | |
tree | cbac255160c2dd52776f5d5d62ab0332d1d5c526 /sbin | |
parent | 1908b0c6517dea6c1fb6bb3f1d3771847569377a (diff) |
remove unused variables
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/ifconfig/brconfig.c | 3 | ||||
-rw-r--r-- | sbin/ifconfig/ifconfig.c | 10 |
2 files changed, 2 insertions, 11 deletions
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" }, |