minor cleanup
git-svn-id: svn://svn.berlios.de/openocd/trunk@1149 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user