HomeClusterLabs Projects

Refactor: executor: Avoid snprintf() in get_address_info()

Description

Refactor: executor: Avoid snprintf() in get_address_info()

To avoid the need to error-check snprintf() explicitly, which we have
not been doing.

Right now we can be sure port is at most 65536, but it's simpler not to
use that assumption in get_address_info() anyway. This extra allocation
shouldn't impact performance in any significant way.

Ref T974

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

Details

Provenance
nrwahl2Authored on Fri, Jun 20, 4:33 AM
Parents
rPb8316fab48a0: Refactor: executor: Error-check snprintf() in read_events()
Branches
Unknown
Tags
Unknown
Tasks
T974: Error-check snprintf() calls