From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47683) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNOx4-00069g-Sf for qemu-devel@nongnu.org; Tue, 11 Mar 2014 11:50:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WNOwy-00011q-Ox for qemu-devel@nongnu.org; Tue, 11 Mar 2014 11:50:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48355) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNOwy-00011i-A2 for qemu-devel@nongnu.org; Tue, 11 Mar 2014 11:50:40 -0400 Message-ID: <1394553055.3981.55.camel@localhost.localdomain> From: Marcel Apfelbaum Date: Tue, 11 Mar 2014 17:50:55 +0200 In-Reply-To: <531F3008.6020208@redhat.com> References: <1394552156-18901-1-git-send-email-marcel.a@redhat.com> <1394552156-18901-3-git-send-email-marcel.a@redhat.com> <531F3008.6020208@redhat.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 2/3] hw/null-machine: Convert null machine to QOM List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: kwolf@redhat.com, ehabkost@redhat.com, mst@redhat.com, armbru@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com, pbonzini@redhat.com, lersek@redhat.com, afaerber@suse.de, aliguori@amazon.com On Tue, 2014-03-11 at 09:47 -0600, Eric Blake wrote: > On 03/11/2014 09:35 AM, Marcel Apfelbaum wrote: > > Needed by some tests. > > > > Signed-off-by: Marcel Apfelbaum > > --- > > hw/core/null-machine.c | 13 +++++++++---- > > 1 file changed, 9 insertions(+), 4 deletions(-) > > > > > -static void register_machines(void) > > +static const TypeInfo none_machine_type_info = { > > + .name = "none-machine", > > + .parent = TYPE_MACHINE, > > + .class_data = (void *)&machine_none > > Why do you need a cast to (void*) in C? I'll take care of this, thanks! Marcel >