summaryrefslogtreecommitdiff
path: root/src/server/tcl_server.c
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-10-24 01:12:56 -0700
committerZachary T Welch <zw@superlucidity.net>2009-11-05 18:03:19 -0800
commit2b78a4e82b1845ee7cc89f6e31d7b49e9299cb32 (patch)
tree501043ad6a37959c193742f21f2e29ff0c1f2651 /src/server/tcl_server.c
parentae5732b9e4f085b89da3f9ce07eb526e159e1937 (diff)
downloadopenocd+libswd-2b78a4e82b1845ee7cc89f6e31d7b49e9299cb32.tar.gz
openocd+libswd-2b78a4e82b1845ee7cc89f6e31d7b49e9299cb32.tar.bz2
openocd+libswd-2b78a4e82b1845ee7cc89f6e31d7b49e9299cb32.tar.xz
openocd+libswd-2b78a4e82b1845ee7cc89f6e31d7b49e9299cb32.zip
Update all server port command to use new helper.
Diffstat (limited to 'src/server/tcl_server.c')
-rw-r--r--src/server/tcl_server.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/server/tcl_server.c b/src/server/tcl_server.c
index e5886774..178d86ba 100644
--- a/src/server/tcl_server.c
+++ b/src/server/tcl_server.c
@@ -179,10 +179,8 @@ int tcl_register_commands(command_context_t *cmd_ctx)
return ERROR_OK;
}
-static int handle_tcl_port_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc)
+static int handle_tcl_port_command(struct command_context_s *cmd_ctx,
+ char *cmd, char **args, int argc)
{
- if (argc == 1) {
- tcl_port = strtoul(args[0], NULL, 0);
- }
- return ERROR_OK;
+ return server_port_command(cmd_ctx, cmd, args, argc, &tcl_port);
}