projects
/
fw
/
openocd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec28c67
)
telnet_server: review unused symbols
author
Antonio Borneo
<borneo.antonio@gmail.com>
Wed, 24 Mar 2010 05:45:29 +0000
(13:45 +0800)
committer
Øyvind Harboe
<oyvind.harboe@zylin.com>
Thu, 25 Mar 2010 06:44:59 +0000
(07:44 +0100)
Remove unused function
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
src/server/telnet_server.c
patch
|
blob
|
history
diff --git
a/src/server/telnet_server.c
b/src/server/telnet_server.c
index 46c883675c2b1b4a9b731a6a6d238b451f047008..10caee31681948425cd152db037833cd92f43cb1 100644
(file)
--- 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));