diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-10 22:23:07 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 10:51:46 -0800 |
commit | 5b6df55a1e5e4c0f531bc336691bc7c9a6a0df87 (patch) | |
tree | 50cd2c3812b1b585301e66fa4cd1fcc84e357539 /src/server | |
parent | 1df5cc18f51366b823bccdaec4ffa1ee3fac2447 (diff) | |
download | openocd+libswd-5b6df55a1e5e4c0f531bc336691bc7c9a6a0df87.tar.gz openocd+libswd-5b6df55a1e5e4c0f531bc336691bc7c9a6a0df87.tar.bz2 openocd+libswd-5b6df55a1e5e4c0f531bc336691bc7c9a6a0df87.tar.xz openocd+libswd-5b6df55a1e5e4c0f531bc336691bc7c9a6a0df87.zip |
use CALL_COMMAND_HANDLER instead of direct calls
By using CALL_COMMAND_HANDLER, parameters can be reordered, added, or
even removed in inherited signatures, without requiring revisiting
all of the various call sites.
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/gdb_server.c | 2 | ||||
-rw-r--r-- | src/server/tcl_server.c | 2 | ||||
-rw-r--r-- | src/server/telnet_server.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c index c0c5d775..761ae406 100644 --- a/src/server/gdb_server.c +++ b/src/server/gdb_server.c @@ -2271,7 +2271,7 @@ COMMAND_HANDLER(handle_gdb_sync_command) /* daemon configuration command gdb_port */ COMMAND_HANDLER(handle_gdb_port_command) { - return server_port_command(cmd_ctx, cmd, args, argc, &gdb_port); + return CALL_COMMAND_HANDLER(server_port_command, &gdb_port); } COMMAND_HANDLER(handle_gdb_memory_map_command) diff --git a/src/server/tcl_server.c b/src/server/tcl_server.c index 3410ca91..c8da5bca 100644 --- a/src/server/tcl_server.c +++ b/src/server/tcl_server.c @@ -172,7 +172,7 @@ int tcl_init(void) COMMAND_HANDLER(handle_tcl_port_command) { - return server_port_command(cmd_ctx, cmd, args, argc, &tcl_port); + return CALL_COMMAND_HANDLER(server_port_command, &tcl_port); } int tcl_register_commands(command_context_t *cmd_ctx) diff --git a/src/server/telnet_server.c b/src/server/telnet_server.c index c409ec0a..6cb47462 100644 --- a/src/server/telnet_server.c +++ b/src/server/telnet_server.c @@ -608,7 +608,7 @@ int telnet_init(char *banner) /* daemon configuration command telnet_port */ COMMAND_HANDLER(handle_telnet_port_command) { - return server_port_command(cmd_ctx, cmd, args, argc, &telnet_port); + return CALL_COMMAND_HANDLER(server_port_command, &telnet_port); } COMMAND_HANDLER(handle_exit_command) |