qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 14/15] fixup! qapi: Change Netdev into a flat union


From: Eric Blake
Subject: [Qemu-devel] [PATCH 14/15] fixup! qapi: Change Netdev into a flat union
Date: Tue, 19 Jul 2016 11:22:02 -0600

[Fix compilation problems in the files I can't build by default]

Signed-off-by: Eric Blake <address@hidden>
---
 net/tap-win32.c | 2 +-
 net/vde.c       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/tap-win32.c b/net/tap-win32.c
index 729309d..662f9b6 100644
--- a/net/tap-win32.c
+++ b/net/tap-win32.c
@@ -795,7 +795,7 @@ int net_init_tap(const Netdev *netdev, const char *name,
     const NetdevTapOptions *tap;

     assert(netdev->type == NET_CLIENT_DRIVER_TAP);
-    tap = netdev->u.tap;
+    tap = &netdev->u.tap;

     if (!tap->has_ifname) {
         error_report("tap: no interface name");
diff --git a/net/vde.c b/net/vde.c
index b8725f8..e50e5d6 100644
--- a/net/vde.c
+++ b/net/vde.c
@@ -116,7 +116,7 @@ int net_init_vde(const Netdev *netdev, const char *name,
     const NetdevVdeOptions *vde;

     assert(netdev->type == NET_CLIENT_DRIVER_VDE);
-    vde = netdev->u.vde;
+    vde = &netdev->u.vde;

     /* missing optional values have been initialized to "all bits zero" */
     if (net_vde_init(peer, "vde", name, vde->sock, vde->port, vde->group,
-- 
2.5.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]