HomeClusterLabs Projects

Refactor: libcrmcommon: Simplify loops in mark_xml_changes()

Description

Refactor: libcrmcommon: Simplify loops in mark_xml_changes()

Neither old_child nor new_child gets removed from the tree during its
respective loop, so we can delay getting the next child until the next
iteration without changing behavior.

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
nrwahl2Authored on Feb 12 2024, 8:33 PM
Parents
rP36f62e85f715: Refactor: libcrmcommon: Separate traversal from accept_attr_deletions()
Branches
Unknown
Tags
Unknown