HomeClusterLabs Projects

Refactor: libcrmcommon: Allow negative values in pcmk__parse_ms()
6728a2f4399aUnpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Refactor: libcrmcommon: Allow negative values in pcmk__parse_ms()

All callers except crm_mon already handled this.

Also, crm_mon was the only caller that passed NULL for the result
argument. So we now CRM_CHECK() that it's not NULL. It's easty add "NULL
result" as a feature again in the future, if there's a frequent need to
validate that a time+units string is parsable without actually needing
its value.

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

Details

Provenance
nrwahl2Authored on Mar 21 2025, 5:33 AM
Parents
rP129d1b8519be: API: libcrmcommon: Deprecate crm_get_msec()
Branches
Unknown
Tags
Unknown

Event Timeline