misc: Use sizeof(uint32_t) instead of simply using 32 bit

This code would break in case we shrink the bitmap, use sizeof instead.
This commit is contained in:
Holger Hans Peter Freyther 2012-04-14 01:03:28 +02:00
parent 11a787df24
commit 58f419c7ce
1 changed files with 1 additions and 1 deletions

View File

@ -295,7 +295,7 @@ DEFUN(show_sys_info, show_sys_info_cmd,
fl1h->hw_info.fpga_version[2], VTY_NEWLINE);
vty_out(vty, "GSM Band Support: ");
for (i = 0; i < 32; i++) {
for (i = 0; i < sizeof(fl1h->hw_info.band_support); i++) {
if (fl1h->hw_info.band_support & (1 << i))
vty_out(vty, "%s ", gsm_band_name(1 << i));
}