minor cleanup

git-svn-id: svn://svn.berlios.de/openocd/trunk@1149 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
oharboe
2008-11-10 08:33:03 +00:00
parent d30b94d8df
commit 0bbe570882
3 changed files with 7 additions and 17 deletions

View File

@@ -637,7 +637,10 @@ int telnet_register_commands(command_context_t *command_context)
int handle_telnet_port_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc)
{
if (argc == 0)
{
command_print(cmd_ctx, "%d", telnet_port);
return ERROR_OK;
}
telnet_port = strtoul(args[0], NULL, 0);