]> git.proxmox.com Git - mirror_qemu.git/commit - vl.c
QemuOpts: Drop qemu_opt_set(), rename qemu_opt_set_err(), fix use
authorMarkus Armbruster <armbru@redhat.com>
Thu, 12 Feb 2015 16:52:20 +0000 (17:52 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 26 Feb 2015 13:49:31 +0000 (14:49 +0100)
commitf43e47dbf6de24db20ec9b588bb6cc762093dd69
treee6236f3afaabde624458eab11e8daaa7e0dd4878
parent6be4194b9215ed29f258543ce34a1b4b2003864d
QemuOpts: Drop qemu_opt_set(), rename qemu_opt_set_err(), fix use

qemu_opt_set() is a wrapper around qemu_opt_set() that reports the
error with qerror_report_err().

Most of its users assume the function can't fail.  Make them use
qemu_opt_set_err() with &error_abort, so that should the assumption
ever break, it'll break noisily.

Just two users remain, in util/qemu-config.c.  Switch them to
qemu_opt_set_err() as well, then rename qemu_opt_set_err() to
qemu_opt_set().

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
18 files changed:
block.c
block/qcow2.c
block/vvfat.c
blockdev.c
hw/pci/pci-hotplug-old.c
hw/usb/dev-network.c
hw/usb/dev-storage.c
hw/watchdog/watchdog.c
include/qemu/option.h
net/net.c
qdev-monitor.c
qemu-char.c
qemu-img.c
tests/test-qemu-opts.c
util/qemu-config.c
util/qemu-option.c
util/qemu-sockets.c
vl.c