]> git.proxmox.com Git - mirror_qemu.git/blobdiff - numa.c
QemuOpts: Convert qemu_opts_foreach() to Error
[mirror_qemu.git] / numa.c
diff --git a/numa.c b/numa.c
index c975fb268232a72b1e9d74ba78ef00c67b4b8931..d227ccc23b4541580fb7faedbdbec4fd8539e193 100644 (file)
--- a/numa.c
+++ b/numa.c
@@ -125,7 +125,7 @@ static void numa_node_parse(NumaNodeOptions *node, QemuOpts *opts, Error **errp)
     max_numa_nodeid = MAX(max_numa_nodeid, nodenr + 1);
 }
 
-static int parse_numa(QemuOpts *opts, void *opaque)
+static int parse_numa(void *opaque, QemuOpts *opts, Error **errp)
 {
     NumaOptions *object = NULL;
     Error *err = NULL;
@@ -216,8 +216,7 @@ void parse_numa_opts(MachineClass *mc)
 {
     int i;
 
-    if (qemu_opts_foreach(qemu_find_opts("numa"), parse_numa,
-                          NULL, 1) != 0) {
+    if (qemu_opts_foreach(qemu_find_opts("numa"), parse_numa, NULL, NULL)) {
         exit(1);
     }