X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fserver%2Ftcl_server.c;h=f37d4975ab37b824eeff6337d963b086ca94ff90;hb=4f4592539d61764397257438d6914137498cbf70;hp=070f933611e3611f5d9d5b443594e620bd4ce451;hpb=1de959ca1c9e67ef57f77ec2d7a1132b73153abb;p=openocd.git diff --git a/src/server/tcl_server.c b/src/server/tcl_server.c index 070f933611..f37d4975ab 100644 --- a/src/server/tcl_server.c +++ b/src/server/tcl_server.c @@ -21,17 +21,8 @@ #include "config.h" #endif -#include #include "tcl_server.h" -#include "log.h" -#include "command.h" - -#include -#include -#include -#include -#include #define TCL_SERVER_VERSION "TCL Server 0.1" #define TCL_MAX_LINE (4096) @@ -43,7 +34,7 @@ typedef struct tcl_connection_s { int tc_outerror; /* flag an output error */ } tcl_connection_t; -static unsigned short tcl_port = 0; +static unsigned short tcl_port = 6666; /* commands */ static int handle_tcl_port_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc); @@ -174,8 +165,8 @@ int tcl_init(void) if (tcl_port == 0) { - LOG_WARNING("no tcl port specified, using default port 6666"); - tcl_port = 6666; + LOG_INFO("tcl port disabled"); + return ERROR_OK; } retval = add_service("tcl", CONNECTION_TCP, tcl_port, 1, tcl_new_connection, tcl_input, tcl_closed, NULL);