]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virNetDevBandwidthClear: Improve error handling
authorMartin Kletzander <mkletzan@redhat.com>
Tue, 18 Sep 2012 10:01:18 +0000 (12:01 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Tue, 18 Sep 2012 14:41:13 +0000 (16:41 +0200)
commit2f678bb10faccba30319488420c586b6a5436f94
tree6210e96c595e86f6a715c0ceacec19975b8ae76f
parent9ac287f8268071b5b73b99198f98362bf56e6792
virNetDevBandwidthClear: Improve error handling

Two changes are introduced in this patch:

 - The first change removes ATTRIBUTE_RETURN_CHECK from
   virNetDevBandwidthClear, because it was called with ignore_value
   always, anyway. The function is used even when it's not necessary
   to call it, just for cleanup purposes.

 - The second change is added ignoring of the command's exit status,
   since it may report an error even when run just as "to be sure we
   clean up" function. No libvirt errors are suppresed by this.
src/network/bridge_driver.c
src/util/virnetdevbandwidth.c
src/util/virnetdevbandwidth.h