]> git.sur5r.net Git - openocd/commitdiff
telnet_port can now be invoked multiple times
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Wed, 5 Mar 2008 06:55:14 +0000 (06:55 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Wed, 5 Mar 2008 06:55:14 +0000 (06:55 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@444 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/server/telnet_server.c

index 1a9077983335ba172c44a51f034695c174086f96..892ed729b603ca30696e5fa4036a3613a05b47b0 100644 (file)
@@ -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;
 }