From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:59193) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ui2tI-0002tc-1d for qemu-devel@nongnu.org; Thu, 30 May 2013 09:27:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ui2t9-0002Wx-0j for qemu-devel@nongnu.org; Thu, 30 May 2013 09:27:39 -0400 Received: from mx1.redhat.com ([209.132.183.28]:20078) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ui2t8-0002Wi-PY for qemu-devel@nongnu.org; Thu, 30 May 2013 09:27:30 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r4UDRUeJ016713 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 30 May 2013 09:27:30 -0400 Received: from redhat.com (vpn-203-5.tlv.redhat.com [10.35.203.5]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with SMTP id r4UDRSU9017880 for ; Thu, 30 May 2013 09:27:29 -0400 Date: Thu, 30 May 2013 16:27:59 +0300 From: "Michael S. Tsirkin" Message-ID: <1369920427-18274-2-git-send-email-mst@redhat.com> References: <1369920427-18274-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1369920427-18274-1-git-send-email-mst@redhat.com> Subject: [Qemu-devel] [PATCH 1/3] pvpanic: use FWCfgState explicitly List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Use the type-safe FWCfgState structure instead of the unsafe void *. Signed-off-by: Michael S. Tsirkin --- hw/misc/pvpanic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/misc/pvpanic.c b/hw/misc/pvpanic.c index 31e1b1d..1483f27 100644 --- 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); -- MST