]> git.proxmox.com Git - qemu.git/commit
qemu-option: Make qemu_opts_foreach() accumulate return values
authorMarkus Armbruster <armbru@redhat.com>
Fri, 29 Jan 2010 18:48:56 +0000 (19:48 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 3 Feb 2010 18:39:01 +0000 (12:39 -0600)
commit4a2594ddd35de7ae7c8cd9c6828cfe72245e6dc5
tree864775d3bbcdf7a8bc4d472146649974f2f3491e
parentf34e5688536839d9f43da36beb9f330d802ece09
qemu-option: Make qemu_opts_foreach() accumulate return values

Return the bitwise inclusive or of all return values instead of the
last call's value.  This lets you find out whether any of the calls
returned a non-zero value.

No functional change, as existing users either don't care for the
value, or pass non-zero abort_on_failure, which breaks the loop on the
first non-zero return value.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qemu-option.c