[PATCH] bhyve: fix typo in struct field accessor

Daniel P. Berrangé posted 1 patch 4 years ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20200326172927.3144824-1-berrange@redhat.com
src/bhyve/bhyve_domain.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[PATCH] bhyve: fix typo in struct field accessor
Posted by Daniel P. Berrangé 4 years ago
This fixes a FreeBSD build error from

  commit a11a0e6e8473fec6127b263a33f892135097648f
  Author: Rafael Fonseca <r4f4rfs@gmail.com>
  Date:   Tue Mar 24 17:14:30 2020 +0100

    bhyve: move video default logic to driver

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
---

Pushed as build fix

 src/bhyve/bhyve_domain.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/bhyve/bhyve_domain.c b/src/bhyve/bhyve_domain.c
index 40ee461b19..95d6ffd31c 100644
--- a/src/bhyve/bhyve_domain.c
+++ b/src/bhyve/bhyve_domain.c
@@ -162,8 +162,8 @@ bhyveDomainDeviceDefPostParse(virDomainDeviceDefPtr dev,
     }
 
     if (dev->type == VIR_DOMAIN_DEVICE_VIDEO &&
-        dev->data.video.type == VIR_DOMAIN_VIDEO_TYPE_DEFAULT) {
-        dev->data.video.type = VIR_DOMAIN_VIDEO_TYPE_GOP;
+        dev->data.video->type == VIR_DOMAIN_VIDEO_TYPE_DEFAULT) {
+        dev->data.video->type = VIR_DOMAIN_VIDEO_TYPE_GOP;
     }
 
     return 0;
-- 
2.24.1