summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorStefan Weil <weil@mail.berlios.de>2010-03-02 22:37:52 +0100
committerMichael S. Tsirkin <mst@redhat.com>2010-03-03 13:34:06 +0200
commite715c8e84ccf262eb56c9ba76f509dfa52f2a918 (patch)
tree80587badc56a4cda10a33bd4146b2f0d149a2068 /hw
parentb1e87018f24cc4c5aac8f448efe6bf616163bf4e (diff)
downloadhqemu-e715c8e84ccf262eb56c9ba76f509dfa52f2a918.zip
hqemu-e715c8e84ccf262eb56c9ba76f509dfa52f2a918.tar.gz
eepro100: Replace variable name to fix a compiler warning
When compiling with -Wshadow, gcc gives a warning which is fixed by renaming stat -> status. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/eepro100.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/hw/eepro100.c b/hw/eepro100.c
index 2a871b8..7eaa876 100644
--- a/hw/eepro100.c
+++ b/hw/eepro100.c
@@ -392,14 +392,14 @@ static void eepro100_acknowledge(EEPRO100State * s)
}
}
-static void eepro100_interrupt(EEPRO100State * s, uint8_t stat)
+static void eepro100_interrupt(EEPRO100State * s, uint8_t status)
{
uint8_t mask = ~s->mem[SCBIntmask];
- s->mem[SCBAck] |= stat;
- stat = s->scb_stat = s->mem[SCBAck];
- stat &= (mask | 0x0f);
- //~ stat &= (~s->mem[SCBIntmask] | 0x0xf);
- if (stat && (mask & 0x01)) {
+ s->mem[SCBAck] |= status;
+ status = s->scb_stat = s->mem[SCBAck];
+ status &= (mask | 0x0f);
+ //~ status &= (~s->mem[SCBIntmask] | 0x0xf);
+ if (status && (mask & 0x01)) {
/* SCB mask and SCB Bit M do not disable interrupt. */
enable_interrupt(s);
} else if (s->int_stat) {
OpenPOWER on IntegriCloud