2
0
mirror of git://git.code.sf.net/p/openocd/code synced 2025-07-19 08:38:14 +10:00

telnet_port can now be invoked multiple times

git-svn-id: svn://svn.berlios.de/openocd/trunk@444 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
oharboe 2008-03-05 06:55:14 +00:00
parent 8404dc3657
commit 6445cc6479

View File

@ -624,8 +624,6 @@ int handle_telnet_port_command(struct command_context_s *cmd_ctx, char *cmd, cha
if (argc == 0) if (argc == 0)
return ERROR_OK; return ERROR_OK;
/* only if the port wasn't overwritten by cmdline */
if (telnet_port == 0)
telnet_port = strtoul(args[0], NULL, 0); telnet_port = strtoul(args[0], NULL, 0);
return ERROR_OK; return ERROR_OK;