HomeClusterLabs Projects

Refactor: tools: Remove some nesting in crm_mon.c

Description

Refactor: tools: Remove some nesting in crm_mon.c

Reorder things in a more logical way: initializations, then option
parsing, then output object setup, then checking args->version, etc.
That way, things are easier to read and we can de-nest the
"if (!args->version)" block.

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

Details

Provenance
nrwahl2Authored on Tue, Aug 12, 5:56 AM
Parents
rPb5730805cf55: Low: tools: Fix CIB validation in crm_mon.c
Branches
Unknown
Tags
Unknown