diff options
author | Eduardo Habkost <ehabkost@redhat.com> | 2020-08-24 17:59:35 -0400 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2020-09-09 13:20:22 -0400 |
commit | 2ada901f2eba246685cf9413a306910712352cf4 (patch) | |
tree | d4344dccbfe4546ca6d9c3373b42788ccfdd01c0 /hw | |
parent | 7c0ae0addaf32793382852eae7951a678b20530d (diff) | |
download | qemu-2ada901f2eba246685cf9413a306910712352cf4.zip qemu-2ada901f2eba246685cf9413a306910712352cf4.tar.gz qemu-2ada901f2eba246685cf9413a306910712352cf4.tar.bz2 |
vhost-user-vga: Use typedef name for instance_size
This makes the code consistent with the rest of QOM code in QEMU,
and will make automated conversion to type declaration macros
simpler.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <20200824215936.2961951-6-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/display/vhost-user-vga.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/display/vhost-user-vga.c b/hw/display/vhost-user-vga.c index 7110ea6..a34a998 100644 --- a/hw/display/vhost-user-vga.c +++ b/hw/display/vhost-user-vga.c @@ -41,7 +41,7 @@ static void vhost_user_vga_inst_initfn(Object *obj) static const VirtioPCIDeviceTypeInfo vhost_user_vga_info = { .generic_name = TYPE_VHOST_USER_VGA, .parent = TYPE_VIRTIO_VGA_BASE, - .instance_size = sizeof(struct VhostUserVGA), + .instance_size = sizeof(VhostUserVGA), .instance_init = vhost_user_vga_inst_initfn, }; |