From b38c3e3629f96c783ac7c00ebda00f63174cf1d0 Mon Sep 17 00:00:00 2001 From: Stanislav Shwartsman Date: Fri, 24 Feb 2012 19:40:18 +0000 Subject: [PATCH] Fix fallout from bx_list_c change --- bochs/iodev/network/pcipnic.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bochs/iodev/network/pcipnic.cc b/bochs/iodev/network/pcipnic.cc index 34b0886b5..cd6aa3bc0 100644 --- a/bochs/iodev/network/pcipnic.cc +++ b/bochs/iodev/network/pcipnic.cc @@ -218,10 +218,9 @@ void bx_pcipnic_c::reset(unsigned type) void bx_pcipnic_c::register_state(void) { - unsigned i; char name[6]; - bx_list_c *list = new bx_list_c(SIM->get_bochs_root(), "pcipnic", "PCI Pseudo NIC State", 11); + bx_list_c *list = new bx_list_c(SIM->get_bochs_root(), "pcipnic", "PCI Pseudo NIC State"); new bx_shadow_num_c(list, "irqEnabled", &BX_PNIC_THIS s.irqEnabled); new bx_shadow_num_c(list, "rCmd", &BX_PNIC_THIS s.rCmd); new bx_shadow_num_c(list, "rStatus", &BX_PNIC_THIS s.rStatus); @@ -230,7 +229,7 @@ void bx_pcipnic_c::register_state(void) new bx_shadow_num_c(list, "recvIndex", &BX_PNIC_THIS s.recvIndex); new bx_shadow_num_c(list, "recvQueueLength", &BX_PNIC_THIS s.recvQueueLength); bx_list_c *recvRL = new bx_list_c(list, "recvRingLength", PNIC_RECV_RINGS); - for (i=0; i