• E
    util: Add a return value to void hash iterators · cc48d3a1
    Erik Skultety 提交于
    Our existing virHashForEach method iterates through all items disregarding the
    fact, that some of the iterators might have actually failed. Errors are usually
    dispatched through an error element in opaque data which then causes the
    original caller of virHashForEach to return -1. In that case, virHashForEach
    could return as soon as one of the iterators fail. This patch changes the
    iterator return type and adjusts all of its instances accordingly, so the
    actual refactor of virHashForEach method can be dealt with later.
    Signed-off-by: NErik Skultety <eskultet@redhat.com>
    cc48d3a1
virdomainobjlist.c 28.3 KB