use COMMAND_REGISTER macro
Replaces direct calls to register_command() with a macro, to allow its parameters to be changed and callers updated in phases.
This commit is contained in:
@@ -177,7 +177,7 @@ COMMAND_HANDLER(handle_tcl_port_command)
|
||||
|
||||
int tcl_register_commands(struct command_context *cmd_ctx)
|
||||
{
|
||||
register_command(cmd_ctx, NULL, "tcl_port",
|
||||
COMMAND_REGISTER(cmd_ctx, NULL, "tcl_port",
|
||||
handle_tcl_port_command, COMMAND_CONFIG,
|
||||
"port on which to listen for incoming TCL syntax");
|
||||
return ERROR_OK;
|
||||
|
||||
Reference in New Issue
Block a user