]> xenbits.xensource.com Git - qemu-upstream-4.4-testing.git/commitdiff
pvpanic: use FWCfgState explicitly
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 30 May 2013 12:59:06 +0000 (15:59 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 2 Jun 2013 15:14:15 +0000 (18:14 +0300)
Use the type-safe FWCfgState structure instead
of the unsafe void *.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/misc/pvpanic.c

index 159340f5f7f294fba42218a7b3e9e8560502b474..910e44f9d2608f7cbfe3c9f557194eb70a3a775d 100644 (file)
@@ -90,7 +90,7 @@ static int pvpanic_isa_initfn(ISADevice *dev)
 {
     PVPanicState *s = ISA_PVPANIC_DEVICE(dev);
     static bool port_configured;
-    void *fw_cfg;
+    FWCfgState *fw_cfg;
 
     memory_region_init_io(&s->io, &pvpanic_ops, s, "pvpanic", 1);
     isa_register_ioport(dev, &s->io, s->ioport);