HomeClusterLabs Projects

Refactor: libpacemaker: Clean up and rename crm_rule_check()

Description

Refactor: libpacemaker: Clean up and rename crm_rule_check()

This is a static function; rename to eval_rule().

Replace goto with free() and freeXpathObject() where needed. There are
only two pointers that ever need to be freed.

Rename "max" variable to the more obvious "num_results".

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

Details

Provenance
nrwahl2Authored on Aug 26 2022, 5:31 PM
Parents
rP8fc9d11e89ce: API: libpacemaker: New API pcmk_check_rules() and pcmk_check_rule()
Branches
Unknown
Tags
Unknown