]> git.proxmox.com Git - mirror_qemu.git/blobdiff - net/hub.c
qapi: Don't special-case simple union wrappers
[mirror_qemu.git] / net / hub.c
index b6d44fd75ba0e98bced09c189f9e125d42554601..6d90c6ee67dfe64d65746554bd5b4a1a8e069207 100644 (file)
--- a/net/hub.c
+++ b/net/hub.c
@@ -288,7 +288,7 @@ int net_init_hubport(const NetClientOptions *opts, const char *name,
 
     assert(opts->type == NET_CLIENT_OPTIONS_KIND_HUBPORT);
     assert(!peer);
-    hubport = opts->u.hubport;
+    hubport = opts->u.hubport.data;
 
     net_hub_add_port(hubport->hubid, name);
     return 0;