Simplify linker set implementation, fix compiler warning with -O3
authorproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Wed, 8 Apr 2009 08:52:59 +0000 (08:52 +0000)
committerproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Wed, 8 Apr 2009 08:52:59 +0000 (08:52 +0000)
commitc135dc326c0db4abe978e0f949b53c97e4a83157
tree2193438a048e200062164b2c021ce827706ca09c
parent0cc57971d2b1c24a2d2b2db7ae792a469f5f2788
Simplify linker set implementation, fix compiler warning with -O3

gcc warns that "array subscript is above array bounds" with -O3 since
pvar is assigned before _i is checked.

Eliminate _i, use a new ppvar variable, which is a pointer to the
reference table.  Terminate reference tables with NULL instead of using
ARRAY_SIZE.  Fix types of reference tables to match those actually used
by the code.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3987 0192ed92-7a03-0410-a25b-9323aeb14dbd
ath_hal/ah_osdep.h