diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2017-08-29 20:06:52 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2017-08-29 20:06:52 +0000 |
commit | ee3d6435ec1cd616a2f8adc1186da012acc1d97e (patch) | |
tree | 929243d3ca6e2552d88f9d0fc4fb4ecf3ed0d554 /sbin/ifconfig/ifconfig.c | |
parent | 8f16f3614cf1691cc29b57e04d9afe1cf785c50d (diff) |
Don't use isset() from sys/param.h in ifconfig. Requested by deraadt
Diffstat (limited to 'sbin/ifconfig/ifconfig.c')
-rw-r--r-- | sbin/ifconfig/ifconfig.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c index 08d48ac1b0d..bb52ac90458 100644 --- a/sbin/ifconfig/ifconfig.c +++ b/sbin/ifconfig/ifconfig.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ifconfig.c,v 1.346 2017/08/01 19:01:08 benno Exp $ */ +/* $OpenBSD: ifconfig.c,v 1.347 2017/08/29 20:06:51 stsp Exp $ */ /* $NetBSD: ifconfig.c,v 1.40 1997/10/01 02:19:43 enami Exp $ */ /* @@ -2366,7 +2366,7 @@ ieee80211_printnode(struct ieee80211_nodereq *nr) printf("%uM HT ", nr->nr_max_rxrate); } else if (nr->nr_rxmcs[0] != 0) { for (i = IEEE80211_HT_NUM_MCS - 1; i >= 0; i--) { - if (isset(nr->nr_rxmcs, i)) + if (nr->nr_rxmcs[i / 8] & (1 << (i / 10))) break; } printf("HT-MCS%d ", i); |