null: fix build with gcc-4.7
authorTetsuya Mukawa <mukawa@igel.co.jp>
Fri, 27 Feb 2015 05:18:18 +0000 (14:18 +0900)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 27 Feb 2015 23:22:00 +0000 (00:22 +0100)
commite34550c8b97826e23c5d0614ef0ce8ab7093c903
tree3792cc8b161624e2b9c3b79d8d0b0cc3b61da4fa
parent29295538545a6b4229c849c4cb4e73b7f4422ea6
null: fix build with gcc-4.7

This patch fixes following errors with gcc-4.7.
 lib/librte_pmd_null/rte_eth_null.c:302:28:
     error: array subscript is above array bounds

Reported-by: John McNamara <john.mcnamara@intel.com>
Reported-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Tetsuya Mukawa <mukawa@igel.co.jp>
Acked-by: John McNamara <john.mcnamara@intel.com>
lib/librte_pmd_null/rte_eth_null.c