From e78b33e3ca2fe05e82f974fcd6e745dbcfa6ca37 Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Wed, 10 May 2017 14:31:18 +0000 Subject: [PATCH] telnet_server: drop unused options They're never used, so just drop them. Change-Id: Ie137deed3e7258f9d6af7e0cb508e73df0f53ee0 Signed-off-by: Karl Palsson Reviewed-on: http://openocd.zylin.com/4131 Tested-by: jenkins Reviewed-by: Spencer Oliver --- src/server/telnet_server.c | 1 - src/server/telnet_server.h | 3 --- src/target/openrisc/jsp_server.c | 1 - 3 files changed, 5 deletions(-) diff --git a/src/server/telnet_server.c b/src/server/telnet_server.c index e33188b5..7507afea 100644 --- a/src/server/telnet_server.c +++ b/src/server/telnet_server.c @@ -222,7 +222,6 @@ static int telnet_new_connection(struct connection *connection) telnet_connection->closed = 0; telnet_connection->line_size = 0; telnet_connection->line_cursor = 0; - telnet_connection->option_size = 0; telnet_connection->prompt = strdup("> "); telnet_connection->state = TELNET_STATE_DATA; diff --git a/src/server/telnet_server.h b/src/server/telnet_server.h index 04ba9657..e43d6bcf 100644 --- a/src/server/telnet_server.h +++ b/src/server/telnet_server.h @@ -29,7 +29,6 @@ #define TELNET_BUFFER_SIZE (1024) -#define TELNET_OPTION_MAX_SIZE (128) #define TELNET_LINE_HISTORY_SIZE (128) #define TELNET_LINE_MAX_SIZE (256) @@ -51,8 +50,6 @@ struct telnet_connection { char line[TELNET_LINE_MAX_SIZE]; int line_size; int line_cursor; - char option[TELNET_OPTION_MAX_SIZE]; - int option_size; char last_escape; char *history[TELNET_LINE_HISTORY_SIZE]; int next_history; diff --git a/src/target/openrisc/jsp_server.c b/src/target/openrisc/jsp_server.c index e581fb87..2d90114f 100644 --- a/src/target/openrisc/jsp_server.c +++ b/src/target/openrisc/jsp_server.c @@ -88,7 +88,6 @@ static int jsp_new_connection(struct connection *connection) telnet_connection->closed = 0; telnet_connection->line_size = 0; telnet_connection->line_cursor = 0; - telnet_connection->option_size = 0; telnet_connection->state = TELNET_STATE_DATA; /* negotiate telnet options */ -- 2.39.5