diff --git a/src/bin/unit_test_attribute.c b/src/bin/unit_test_attribute.c index 15b404eec48c..1f0b7293b096 100644 --- a/src/bin/unit_test_attribute.c +++ b/src/bin/unit_test_attribute.c @@ -1105,7 +1105,7 @@ static void command_print(void) void *walk_ctx = NULL; printf("Command hierarchy --------"); - fr_command_debug(stdout, command_head); + fr_command_debug(command_head, stdout); printf("Command list --------"); while (fr_command_walk(command_head, &walk_ctx, NULL, command_walk) == 1) { diff --git a/src/lib/server/command.c b/src/lib/server/command.c index 98890f987989..06d403aed5db 100644 --- a/src/lib/server/command.c +++ b/src/lib/server/command.c @@ -1599,7 +1599,7 @@ static void fr_command_debug_internal(FILE *fp, fr_cmd_t *head, int depth) } } -void fr_command_debug(FILE *fp, fr_cmd_t *head) +void fr_command_debug(fr_cmd_t *head, FILE *fp) { fr_command_debug_internal(fp, head, 0); } diff --git a/src/lib/server/command.h b/src/lib/server/command.h index 3cdf8eb3ff24..8fdee91c7786 100644 --- a/src/lib/server/command.h +++ b/src/lib/server/command.h @@ -79,7 +79,7 @@ int fr_command_walk(fr_cmd_t *head, void **walk_ctx, void *ctx, fr_cmd_walk_t ca int fr_command_tab_expand(TALLOC_CTX *ctx, fr_cmd_t *head, fr_cmd_info_t *info, int max_expansions, char const **expansions); char const *fr_command_help(fr_cmd_t *head, int argc, char *argv[]); int fr_command_run(FILE *fp, FILE *fp_err, fr_cmd_info_t *info, bool read_only); -void fr_command_debug(FILE *fp, fr_cmd_t *head); +void fr_command_debug(fr_cmd_t *head, FILE *fp); int fr_command_str_to_argv(fr_cmd_t *head, fr_cmd_info_t *info, char const *str); int fr_command_clear(int new_argc, fr_cmd_info_t *info) CC_HINT(nonnull);