PERFORCE change 117510 for review
Sam Leffler
sam at FreeBSD.org
Fri Apr 6 16:18:22 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=117510
Change 117510 by sam at sam_ebb on 2007/04/06 16:17:38
rename local "max" variable to silence gcc 4.x complaint
about shadowed variable
Affected files ...
.. //depot/projects/wifi/sys/net80211/ieee80211_scan_sta.c#17 edit
Differences ...
==== //depot/projects/wifi/sys/net80211/ieee80211_scan_sta.c#17 (text+ko) ====
@@ -602,21 +602,21 @@
static u_int8_t
maxrate(const struct ieee80211_scan_entry *se)
{
- u_int8_t max, r;
+ u_int8_t rmax, r;
int i;
- max = 0;
+ rmax = 0;
for (i = 0; i < se->se_rates[1]; i++) {
r = se->se_rates[2+i] & IEEE80211_RATE_VAL;
- if (r > max)
- max = r;
+ if (r > rmax)
+ rmax = r;
}
for (i = 0; i < se->se_xrates[1]; i++) {
r = se->se_xrates[2+i] & IEEE80211_RATE_VAL;
- if (r > max)
- max = r;
+ if (r > rmax)
+ rmax = r;
}
- return max;
+ return rmax;
}
/*
More information about the p4-projects
mailing list