HomeClusterLabs Projects

Refactor: libcrmcommon: Drop pcmk__starts_with()

Description

Refactor: libcrmcommon: Drop pcmk__starts_with()

Use g_str_has_prefix() instead. Note, however, that the GLib function
logs an error if either of its arguments is NULL. So we NULL-check the
argument anywhere that we're not already assuming it's non-NULL (like
printing its value in a log message).

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

Details

Provenance
nrwahl2Authored on Sat, Aug 9, 2:08 AM
Parents
rPb6dea3760c85: Refactor: libcrmcommon: pcmk__parse_ll_range() accepts NULL output args
Branches
Unknown
Tags
Unknown