HomeClusterLabs Projects

Refactor: libpacemaker, tools: Expect an enum to various messages.

Description

Refactor: libpacemaker, tools: Expect an enum to various messages.

In crm_mon, the crm-mon-disconnected message can just expect an enum
instead of an int. We're already passing an enum and casting it when we
pop the arg off the stack.

In print_cluster_status, the cluster-status message is already expecting
an enum but our tools aren't smart enough and think the value being
passed is an int. So just assign it to a variable with the right type
and pass that instead.

Details

Provenance
clumensAuthored on Apr 12 2023, 3:53 PM
kgaillotCommitted on Apr 17 2023, 12:03 PM
Parents
rPeae29cc46913: Refactor: libpacemaker: Expect a time_t in pacemakerd-health message.
Branches
Unknown
Tags
Unknown