[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 2/3] hw/null-machine: Convert null machine to QO
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH 2/3] hw/null-machine: Convert null machine to QOM |
Date: |
Tue, 11 Mar 2014 09:47:20 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 |
On 03/11/2014 09:35 AM, Marcel Apfelbaum wrote:
> Needed by some tests.
>
> Signed-off-by: Marcel Apfelbaum <address@hidden>
> ---
> 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?
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature