HomeClusterLabs Projects

Refactor: controller: Better error checks in controld_delete_node_state

Description

Refactor: controller: Better error checks in controld_delete_node_state

Assert if cib == NULL. This is an internal programming error and we have
bigger problems. Likewise assert instead of check if uname == NULL; we
should be catching that before calling this function.

Add a trivial default case to the switch statement.

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

Details

Provenance
nrwahl2Authored on Jun 13 2023, 1:22 AM
Parents
rP36c04fbf9021: Merge pull request #3126 from kgaillot/best-practices
Branches
Unknown
Tags
Unknown