]> git.proxmox.com Git - mirror_qemu.git/blobdiff - net/net.c
QemuOpts: Convert qemu_opts_set() to Error, fix its use
[mirror_qemu.git] / net / net.c
index 5146361f07efd602d8e8ceb55f741e4aa1f6780a..2af07e6777bbf9f1c72fcb12c95a1d77c4412d72 100644 (file)
--- a/net/net.c
+++ b/net/net.c
@@ -1296,9 +1296,9 @@ int net_init_clients(void)
 
     if (default_net) {
         /* if no clients, we use a default config */
-        qemu_opts_set(net, NULL, "type", "nic");
+        qemu_opts_set(net, NULL, "type", "nic", &error_abort);
 #ifdef CONFIG_SLIRP
-        qemu_opts_set(net, NULL, "type", "user");
+        qemu_opts_set(net, NULL, "type", "user", &error_abort);
 #endif
     }