]> git.proxmox.com Git - qemu.git/blobdiff - hw/lance.c
Avoid asprintf() which is not available on mingw
[qemu.git] / hw / lance.c
index ce3d46c17bca8aaa4c9a7de4d6b851de8e73d98b..9b98bb849a75c86a994acafdd8121a5f10f3de43 100644 (file)
@@ -85,7 +85,7 @@ static const MemoryRegionOps lance_mem_ops = {
     },
 };
 
-static void lance_cleanup(VLANClientState *nc)
+static void lance_cleanup(NetClientState *nc)
 {
     PCNetState *d = DO_UPCAST(NICState, nc, nc)->opaque;
 
@@ -93,7 +93,7 @@ static void lance_cleanup(VLANClientState *nc)
 }
 
 static NetClientInfo net_lance_info = {
-    .type = NET_CLIENT_TYPE_NIC,
+    .type = NET_CLIENT_OPTIONS_KIND_NIC,
     .size = sizeof(NICState),
     .can_receive = pcnet_can_receive,
     .receive = pcnet_receive,