Skip to content

Commit

Permalink
Refactor: libpacemaker: Use enum type in pcmkd health output headers
Browse files Browse the repository at this point in the history
Today I learned you don't have to use "int" here.

Signed-off-by: Reid Wahl <[email protected]>
  • Loading branch information
nrwahl2 committed Nov 5, 2022
1 parent 33c212c commit 757936d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/pacemaker/pcmk_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -647,8 +647,8 @@ health_xml(pcmk__output_t *out, va_list args)
return pcmk_rc_ok;
}

PCMK__OUTPUT_ARGS("pacemakerd-health", "const char *", "int", "const char *",
"long long")
PCMK__OUTPUT_ARGS("pacemakerd-health", "const char *",
"enum pcmk_pacemakerd_state", "const char *", "long long")
static int
pacemakerd_health(pcmk__output_t *out, va_list args)
{
Expand Down Expand Up @@ -688,8 +688,8 @@ pacemakerd_health(pcmk__output_t *out, va_list args)
return rc;
}

PCMK__OUTPUT_ARGS("pacemakerd-health", "const char *", "int", "const char *",
"long long")
PCMK__OUTPUT_ARGS("pacemakerd-health", "const char *",
"enum pcmk_pacemakerd_state", "const char *", "long long")
static int
pacemakerd_health_html(pcmk__output_t *out, va_list args)
{
Expand Down Expand Up @@ -731,8 +731,8 @@ pacemakerd_health_html(pcmk__output_t *out, va_list args)
return pcmk_rc_ok;
}

PCMK__OUTPUT_ARGS("pacemakerd-health", "const char *", "int", "const char *",
"long long")
PCMK__OUTPUT_ARGS("pacemakerd-health", "const char *",
"enum pcmk_pacemakerd_state", "const char *", "long long")
static int
pacemakerd_health_text(pcmk__output_t *out, va_list args)
{
Expand All @@ -753,8 +753,8 @@ pacemakerd_health_text(pcmk__output_t *out, va_list args)
}
}

PCMK__OUTPUT_ARGS("pacemakerd-health", "const char *", "int", "const char *",
"long long")
PCMK__OUTPUT_ARGS("pacemakerd-health", "const char *",
"enum pcmk_pacemakerd_state", "const char *", "long long")
static int
pacemakerd_health_xml(pcmk__output_t *out, va_list args)
{
Expand Down

0 comments on commit 757936d

Please sign in to comment.