summaryrefslogtreecommitdiffstats
path: root/sbin/ifconfig/ifieee80211.c
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2012-01-10 02:59:18 +0000
committereadler <eadler@FreeBSD.org>2012-01-10 02:59:18 +0000
commit79726a4793cd62d7d2d0f2e457ca2a653359f746 (patch)
tree1873ab2fd80ccdbaedbdec467354ccace4036230 /sbin/ifconfig/ifieee80211.c
parent6de976fb27965c524719f339df0eb7c5c2576e77 (diff)
downloadFreeBSD-src-79726a4793cd62d7d2d0f2e457ca2a653359f746.zip
FreeBSD-src-79726a4793cd62d7d2d0f2e457ca2a653359f746.tar.gz
Fix warning when compiling with gcc46:
error: variable 'firstkey' set but not used Approved by: dim MFC after: 3 days
Diffstat (limited to 'sbin/ifconfig/ifieee80211.c')
-rw-r--r--sbin/ifconfig/ifieee80211.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sbin/ifconfig/ifieee80211.c b/sbin/ifconfig/ifieee80211.c
index 1cfc623..7bb4e35 100644
--- a/sbin/ifconfig/ifieee80211.c
+++ b/sbin/ifconfig/ifieee80211.c
@@ -4383,7 +4383,6 @@ ieee80211_status(int s)
if (get80211val(s, IEEE80211_IOC_WEP, &wepmode) != -1 &&
wepmode != IEEE80211_WEP_NOSUP) {
- int firstkey;
switch (wepmode) {
case IEEE80211_WEP_OFF:
@@ -4419,7 +4418,6 @@ ieee80211_status(int s)
goto end;
}
- firstkey = 1;
for (i = 0; i < num; i++) {
struct ieee80211req_key ik;
@@ -4433,7 +4431,6 @@ ieee80211_status(int s)
if (verbose)
LINE_BREAK();
printkey(&ik);
- firstkey = 0;
}
}
end:
OpenPOWER on IntegriCloud