transport: fix transport command args gaffe
[fw/openocd] / src / server / tcl_server.c
index f82cafefd5492fd1a7943d2fd7127122a2c8a31a..16710860614c708f21ddb24121aa9686cd90ef91 100644 (file)
@@ -166,7 +166,7 @@ int tcl_init(void)
                return ERROR_OK;
        }
 
-       return add_service_pipe("tcl", tcl_port, 1,
+       return add_service("tcl", tcl_port, 1,
                        &tcl_new_connection, &tcl_input,
                        &tcl_closed, NULL);
 }
@@ -183,7 +183,7 @@ static const struct command_registration tcl_command_handlers[] = {
                .mode = COMMAND_CONFIG,
                .help = "Specify port on which to listen "
                        "for incoming Tcl syntax.  "
-                       "No arguments reports Tcl port; zero disables.",
+                       "Read help on 'gdb_port'.",
                .usage = "[port_num]",
        },
        COMMAND_REGISTRATION_DONE