aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-09-06 17:47:39 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-09-06 17:47:39 +0000
commiteb38c52c2a6df76928c1a4760bc87d21b256e22a (patch)
tree0b391e1d33f6f47a90f7c3fa8e63e863ee9f1b8e /hw/rtl8139.c
parentSome little fixes on QEMU (diff)
downloadqemu-kvm-eb38c52c2a6df76928c1a4760bc87d21b256e22a.tar.gz
qemu-kvm-eb38c52c2a6df76928c1a4760bc87d21b256e22a.tar.bz2
qemu-kvm-eb38c52c2a6df76928c1a4760bc87d21b256e22a.zip
Fix most warnings that would be caused by gcc flag -Wundef
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5173 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/rtl8139.c')
-rw-r--r--hw/rtl8139.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/rtl8139.c b/hw/rtl8139.c
index 6aec2fffc..cae878858 100644
--- a/hw/rtl8139.c
+++ b/hw/rtl8139.c
@@ -3356,7 +3356,7 @@ static inline int64_t rtl8139_get_next_tctr_time(RTL8139State *s, int64_t curren
return next_time;
}
-#if RTL8139_ONBOARD_TIMER
+#ifdef RTL8139_ONBOARD_TIMER
static void rtl8139_timer(void *opaque)
{
RTL8139State *s = opaque;
@@ -3456,7 +3456,7 @@ void pci_rtl8139_init(PCIBus *bus, NICInfo *nd, int devfn)
register_savevm("rtl8139", -1, 3, rtl8139_save, rtl8139_load, s);
-#if RTL8139_ONBOARD_TIMER
+#ifdef RTL8139_ONBOARD_TIMER
s->timer = qemu_new_timer(vm_clock, rtl8139_timer, s);
qemu_mod_timer(s->timer,