X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fserver%2Ftelnet_server.c;h=10caee31681948425cd152db037833cd92f43cb1;hb=4af724df238eb30569c2845b6160ef4e7f894ad1;hp=46c883675c2b1b4a9b731a6a6d238b451f047008;hpb=ec28c674af428a968ddc8b0242913bde07b901c7;p=fw%2Fopenocd diff --git a/src/server/telnet_server.c b/src/server/telnet_server.c index 46c883675..10caee316 100644 --- a/src/server/telnet_server.c +++ b/src/server/telnet_server.c @@ -580,18 +580,6 @@ static int telnet_connection_closed(struct connection *connection) return ERROR_OK; } -int telnet_set_prompt(struct connection *connection, char *prompt) -{ - struct telnet_connection *t_con = connection->priv; - - if (t_con->prompt != NULL) - free(t_con->prompt); - - t_con->prompt = strdup(prompt); - - return ERROR_OK; -} - int telnet_init(char *banner) { struct telnet_service *telnet_service = malloc(sizeof(struct telnet_service));