HomeClusterLabs Projects

Refactor: libcrmcommon: Drop pcmk__ends_with()

Description

Refactor: libcrmcommon: Drop pcmk__ends_with()

Use g_str_has_suffix() 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:50 AM
Parents
rPb0ec229075a1: Refactor: libcrmcommon: Drop pcmk__starts_with()
Branches
Unknown
Tags
Unknown