Fix warning when compiling with gcc46:
error: variable 'firstkey' set but not used Approved by: dim MFC after: 3 days
This commit is contained in:
parent
08084125ee
commit
83d26a13ba
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user