HomeClusterLabs Projects

Refactor: libcrmcommon: Drop pcmk__trim()

Description

Refactor: libcrmcommon: Drop pcmk__trim()

Use g_strchomp() instead. The two functions are not equivalent.
pcmk__trim() strips trailing newlines, while g_strchomp() strips
all trailing whitespace. However, for the use cases we have,
g_strchomp() is fine.

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

Details

Provenance
nrwahl2Authored on Sat, Aug 9, 3:33 AM
Parents
rP2955134cf9da: Refactor: libcrmcommon: Drop pcmk__ends_with_ext()
Branches
Unknown
Tags
Unknown