Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reorder fr_command_debug() parameters #5318

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/bin/unit_test_attribute.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/server/command.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/server/command.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down