HomeClusterLabs Projects

Refactor: libcrmcommon,various: use crm_parse_ll() instead of crm_int_helper()

Description

Refactor: libcrmcommon,various: use crm_parse_ll() instead of crm_int_helper()

... whenever possible. crm_parse_ll() is a public API wrapper for the internal
API function crm_int_helper(), and is equivalent when the passed value is
non-NULL and the pointer after the parsed number is not needed. That fits all
but one case where crm_int_helper() was used.

Preferring crm_parse_ll() makes the code more readable and makes the callers
immune to a planned change in crm_int_helper().

Details

Provenance
kgaillotAuthored on Feb 4 2020, 9:42 AM
Parents
rP005feffae5ca: Low: libcrmcommon: correctly check configuration options for positive values
Branches
Unknown
Tags
Unknown

Event Timeline