aboutsummaryrefslogtreecommitdiff
path: root/arch_init.c
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2013-03-21 00:23:17 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2013-04-04 19:23:08 -0500
commit0c764a9dfc0d480c21f325480aa2e69581841858 (patch)
treeeaed2d79b7c9b91481eccb6d1d15d739a7101924 /arch_init.c
parent8ccbad5c7b61c46c1b69b8089b8965cd69c0a8de (diff)
acpi_table_add(): accept QemuOpts and parse it with OptsVisitor
As one consequence, strtok() -- which modifies its argument -- is replaced with g_strsplit(). Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Anthony Liguori <aliguori@us.ibm.com> Message-id: 1363821803-3380-6-git-send-email-lersek@redhat.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'arch_init.c')
-rw-r--r--arch_init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch_init.c b/arch_init.c
index 2ed12faee9..0373a580f8 100644
--- a/arch_init.c
+++ b/arch_init.c
@@ -1103,10 +1103,10 @@ int qemu_uuid_parse(const char *str, uint8_t *uuid)
return 0;
}
-void do_acpitable_option(const char *optarg)
+void do_acpitable_option(const QemuOpts *opts)
{
#ifdef TARGET_I386
- if (acpi_table_add(optarg) < 0) {
+ if (acpi_table_add(opts) < 0) {
fprintf(stderr, "Wrong acpi table provided\n");
exit(1);
}