[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [patch 2/4] ioemu: piix4acpi.c: Consistently dont cast opaque to PHPSlots
Some instances were cast and others were not. This patch makes all instances not cast opaque into PHPSlots. Also consistently use hotplug_slots as the variable to which opaque is assigned. Signed-off-by: Simon Horman <horms@xxxxxxxxxxxx> Index: ioemu-remote/hw/piix4acpi.c =================================================================== --- ioemu-remote.orig/hw/piix4acpi.c 2009-02-23 19:31:54.000000000 +1100 +++ ioemu-remote/hw/piix4acpi.c 2009-02-23 19:32:36.000000000 +1100 @@ -279,24 +279,24 @@ static void acpi_php_writeb(void *opaque static void pcislots_save(QEMUFile* f, void* opaque) { - PHPSlots *s = (PHPSlots*)opaque; + PHPSlots *hotplug_slots = opaque; int i; for ( i = 0; i < ACPI_PHP_SLOT_NUM; i++ ) { - qemu_put_8s( f, &s->status[i]); + qemu_put_8s( f, &hotplug_slots->status[i]); } - qemu_put_8s(f, &s->plug_evt); + qemu_put_8s(f, &hotplug_slots->plug_evt); } static int pcislots_load(QEMUFile* f, void* opaque, int version_id) { - PHPSlots *s = (PHPSlots*)opaque; + PHPSlots *hotplug_slots = opaque; int i; if (version_id != 1) return -EINVAL; for ( i = 0; i < ACPI_PHP_SLOT_NUM; i++ ) { - qemu_get_8s( f, &s->status[i]); + qemu_get_8s( f, &hotplug_slots->status[i]); } - qemu_get_8s(f, &s->plug_evt); + qemu_get_8s(f, &hotplug_slots->plug_evt); return 0; } -- -- Simon Horman VA Linux Systems Japan K.K., Sydney, Australia Satellite Office H: www.vergenet.net/~horms/ W: www.valinux.co.jp/en _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |