HomeClusterLabs Projects

Refactor: tools: Avoid callbacks in reconcile_output_formats()

Description

Refactor: tools: Avoid callbacks in reconcile_output_formats()

Make assignments explicitly instead of via callbacks. The callbacks
are short and simple enough that we don't really benefit from them in
reconcile_output_formats(). We'll get rid of some of the
pcmk__str_update() calls soon when we use case-sensitive comparisons.

Also add a pcmk__str_update() call to no_curses_cb(), so that
args->output_ty matches output_format.

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

Details

Provenance
nrwahl2Authored on Mar 29 2023, 10:06 PM
Parents
rPa722dbdb4438: Refactor: tools: Don't use g_propagate_error in reconcile_output_formats
Branches
Unknown
Tags
Unknown