Date: Fri, 6 Apr 2007 16:18:22 GMT From: Sam Leffler <sam@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 117510 for review Message-ID: <200704061618.l36GIMrj060486@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=117510 Change 117510 by sam@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; } /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200704061618.l36GIMrj060486>