HomeClusterLabs Projects

Fix: libstonithd, tools: Fix arguments to stonith-event.

Description

Fix: libstonithd, tools: Fix arguments to stonith-event.

First, the second argument should be a gboolean instead of an int. Use
is_set when calling to make sure that is the case. Second,
stonith_event_xml should pull all varargs off using va_arg. This
prevents bugs in the future should the number of args change. Third,
print_opts should be an unsigned int instead of an int. It's a bit
field.

Details

Provenance
clumensAuthored on Nov 26 2019, 3:54 PM
Parents
rPa4c88aadb1a3: Fix: tools: The last arg to cluster-dc should not be const.
Branches
Unknown
Tags
Unknown

Event Timeline