diff options
author | krj <krj@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-10-04 18:29:51 +0000 |
---|---|---|
committer | krj <krj@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-10-04 18:29:51 +0000 |
commit | e0e51f2c72301843d3e49ab21e1341eb48bd3c16 (patch) | |
tree | e42e6e0a94b545b00e7464b027edfa59d1a07ea3 /plugins | |
parent | 7817e6b55099ce9896c2e777cd53f290c19a494a (diff) |
Use G_N_ELEMENTS instead of hard coding size of array
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30315 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/wimax/crc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/wimax/crc.c b/plugins/wimax/crc.c index 35a03a524b..63a73ddb9a 100644 --- a/plugins/wimax/crc.c +++ b/plugins/wimax/crc.c @@ -61,7 +61,7 @@ void wimax_mac_gen_crc32_table(void) guint32 crc; /* little-endian (reflected) algorithm */ - for ( index = 0; index < 256; index++ ) + for ( index = 0; index < G_N_ELEMENTS(crc32_table); index++ ) { crc = ( index << 24 ); for ( bit = 0; bit < 8; bit++ ) @@ -95,7 +95,7 @@ void wimax_mac_gen_crc8_table(void) guint index, bit; guint8 crc; - for ( index = 0; index < 256; index++ ) + for ( index = 0; index < G_N_ELEMENTS(crc8_table); index++ ) { crc = index; for ( bit = 0; bit < 8; bit++ ) |