]> git.ipfire.org Git - thirdparty/libvirt.git/commit
all: Replace virGetLastError with virGetLastErrorCode where we can
authorramyelkest <ramyelkest@gmail.com>
Sat, 5 May 2018 12:04:21 +0000 (13:04 +0100)
committerErik Skultety <eskultet@redhat.com>
Tue, 5 Jun 2018 16:44:05 +0000 (18:44 +0200)
commit2b6667abbf1af07ea8c9a33673a94a02c4d1ab59
treee6898f89991192a0b80638ae6e52e38c662bd71d
parent50e96bb2a18a1bd7c2e7c5585e4ba60759496121
all: Replace virGetLastError with virGetLastErrorCode where we can

Replace instances where we previously called virGetLastError just to
either get the code or to check if an error exists with
virGetLastErrorCode to avoid a validity pre-check.

Signed-off-by: Ramy Elkest <ramyelkest@gmail.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
24 files changed:
src/locking/lock_driver_lockd.c
src/lxc/lxc_controller.c
src/qemu/qemu_agent.c
src/qemu/qemu_conf.c
src/qemu/qemu_domain.c
src/qemu/qemu_driver.c
src/qemu/qemu_hotplug.c
src/qemu/qemu_migration.c
src/qemu/qemu_monitor.c
src/qemu/qemu_monitor_json.c
src/qemu/qemu_process.c
src/remote/remote_driver.c
src/rpc/virnetclient.c
src/rpc/virnetlibsshsession.c
src/util/virmodule.c
src/util/virxml.c
tests/commandtest.c
tests/testutils.c
tests/virhostcputest.c
tests/virstoragetest.c
tools/virsh-domain-monitor.c
tools/virsh-domain.c
tools/virsh-util.c
tools/vsh.c