aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-02-12 09:53:03 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-02-12 09:53:03 +0000
commit5d64d657de1c8a865ddfbc86f7d6d268527f58a2 (patch)
tree7880ccfc60a6acec5291a818c61c0203d2902f7e
parent52caba0417d5727fa02d91dddf6d8445218d6109 (diff)
removed the subchar variable, it was only set and never used
-rw-r--r--lib/telnet.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/telnet.c b/lib/telnet.c
index 55d0a70e2..9bf2365d8 100644
--- a/lib/telnet.c
+++ b/lib/telnet.c
@@ -811,7 +811,6 @@ static CURLcode check_telnet_options(struct connectdata *conn)
static void suboption(struct connectdata *conn)
{
struct curl_slist *v;
- unsigned char subchar;
unsigned char temp[2048];
int len;
int tmplen;
@@ -821,7 +820,7 @@ static void suboption(struct connectdata *conn)
struct TELNET *tn = (struct TELNET *)conn->proto.telnet;
printsub(data, '<', (unsigned char *)tn->subbuffer, CURL_SB_LEN(tn)+2);
- switch (subchar = CURL_SB_GET(tn)) {
+ switch (CURL_SB_GET(tn)) {
case CURL_TELOPT_TTYPE:
len = strlen(tn->subopt_ttype) + 4 + 2;
snprintf((char *)temp, sizeof(temp),