summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-03-05 06:55:14 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-03-05 06:55:14 +0000
commit6445cc6479cc04d7d88447526394210f5867c0ba (patch)
treecd9e53b183947f454da546491e4cf1d80ce64935 /src
parent8404dc36575c4a1c0d61b91258b769e1af1201b6 (diff)
downloadopenocd_libswd-6445cc6479cc04d7d88447526394210f5867c0ba.tar.gz
openocd_libswd-6445cc6479cc04d7d88447526394210f5867c0ba.tar.bz2
openocd_libswd-6445cc6479cc04d7d88447526394210f5867c0ba.tar.xz
openocd_libswd-6445cc6479cc04d7d88447526394210f5867c0ba.zip
telnet_port can now be invoked multiple times
git-svn-id: svn://svn.berlios.de/openocd/trunk@444 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r--src/server/telnet_server.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/server/telnet_server.c b/src/server/telnet_server.c
index 1a907798..892ed729 100644
--- a/src/server/telnet_server.c
+++ b/src/server/telnet_server.c
@@ -624,9 +624,7 @@ int handle_telnet_port_command(struct command_context_s *cmd_ctx, char *cmd, cha
if (argc == 0)
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;
}