]> xenbits.xensource.com Git - libvirt.git/commit
network: replace virSaveLastError() with virErrorPreserveLast()
authorLaine Stump <laine@redhat.com>
Fri, 16 Aug 2019 02:28:27 +0000 (22:28 -0400)
committerLaine Stump <laine@redhat.com>
Fri, 16 Aug 2019 15:58:46 +0000 (11:58 -0400)
commit39de732aa728ae9b8a9414ad08b8d0ee7ed02732
treefdc87f57d443003e3f9eae0b00169103bd46a7aa
parentdac697e8d7d6d9a607e61caeeec06b259edf513f
network: replace virSaveLastError() with virErrorPreserveLast()

virErrorPreserveLast()/virErrorRestore() (added in commit 8333e7455
back in 2017), do a better better job of saving and restoring the last
libvirt error than virSaveLastError()/virErrorRestore() (they're
simpler, and they also save/restore the system errno).

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/network/bridge_driver.c