projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cac1221
)
pvpanic: use FWCfgState explicitly
author
Michael S. Tsirkin
<mst@redhat.com>
Thu, 30 May 2013 12:59:06 +0000
(15:59 +0300)
committer
Michael 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
patch
|
blob
|
history
diff --git
a/hw/misc/pvpanic.c
b/hw/misc/pvpanic.c
index 159340f5f7f294fba42218a7b3e9e8560502b474..910e44f9d2608f7cbfe3c9f557194eb70a3a775d 100644
(file)
--- a/
hw/misc/pvpanic.c
+++ b/
hw/misc/pvpanic.c
@@
-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);