HomeClusterLabs Projects

Refactor: libcrmcommon: Allow negative values in pcmk__parse_ms()
4f5d309d3369Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.
This commit no longer exists in the repository. It may have been part of a branch which was deleted.This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or 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 dest
argument. So we rename it to result, get rid of the local result
variable, and CRM_CHECK that it's not NULL. It's easy to add "NULL dest"
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

Event Timeline

Commit No Longer Exists

This commit no longer exists in the repository.