HomeClusterLabs Projects

Refactor: tools: Improve loop bounds in crm_error

Description

Refactor: tools: Improve loop bounds in crm_error

256 is still a magic number for the top end of pcmk_result_pcmk_rc, but
there is not a reliable max system errno AFAIK. For example, see the
#ifdef __hppa__ block in results.h -- such systems may have error
codes above 200 (PCMK_CUSTOM_OFFSET, which we used as the max before).

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

Details

Provenance
nrwahl2Authored on Sep 1 2022, 3:30 AM
Parents
rP3a6fcad06058: Feature: libcrmcommon: New function to get bounds of given rc family
Branches
Unknown
Tags
Unknown