diff options
Diffstat (limited to 'networking/telnet.c')
-rw-r--r-- | networking/telnet.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/networking/telnet.c b/networking/telnet.c index ce82a0ee8..57494089d 100644 --- a/networking/telnet.c +++ b/networking/telnet.c | |||
@@ -137,7 +137,7 @@ static int local_bind(int port); | |||
137 | /* Some globals */ | 137 | /* Some globals */ |
138 | static int one = 1; | 138 | static int one = 1; |
139 | 139 | ||
140 | #ifdef BB_FEATURE_TELNET_TTYPE | 140 | #ifdef CONFIG_FEATURE_TELNET_TTYPE |
141 | static char *ttype; | 141 | static char *ttype; |
142 | #endif | 142 | #endif |
143 | 143 | ||
@@ -326,7 +326,7 @@ static void putiac1(byte c) | |||
326 | } | 326 | } |
327 | #endif | 327 | #endif |
328 | 328 | ||
329 | #ifdef BB_FEATURE_TELNET_TTYPE | 329 | #ifdef CONFIG_FEATURE_TELNET_TTYPE |
330 | static void putiac_subopt(byte c, char *str) | 330 | static void putiac_subopt(byte c, char *str) |
331 | { | 331 | { |
332 | int len = strlen(str) + 6; // ( 2 + 1 + 1 + strlen + 2 ) | 332 | int len = strlen(str) + 6; // ( 2 + 1 + 1 + strlen + 2 ) |
@@ -453,7 +453,7 @@ static inline void to_sga() | |||
453 | return; | 453 | return; |
454 | } | 454 | } |
455 | 455 | ||
456 | #ifdef BB_FEATURE_TELNET_TTYPE | 456 | #ifdef CONFIG_FEATURE_TELNET_TTYPE |
457 | static inline void to_ttype() | 457 | static inline void to_ttype() |
458 | { | 458 | { |
459 | /* Tell server we will (or won't) do TTYPE */ | 459 | /* Tell server we will (or won't) do TTYPE */ |
@@ -473,7 +473,7 @@ static void telopt(byte c) | |||
473 | { | 473 | { |
474 | case TELOPT_ECHO: to_echo(c); break; | 474 | case TELOPT_ECHO: to_echo(c); break; |
475 | case TELOPT_SGA: to_sga(c); break; | 475 | case TELOPT_SGA: to_sga(c); break; |
476 | #ifdef BB_FEATURE_TELNET_TTYPE | 476 | #ifdef CONFIG_FEATURE_TELNET_TTYPE |
477 | case TELOPT_TTYPE: to_ttype(c); break; | 477 | case TELOPT_TTYPE: to_ttype(c); break; |
478 | #endif | 478 | #endif |
479 | default: to_notsup(c); break; | 479 | default: to_notsup(c); break; |
@@ -492,7 +492,7 @@ static int subneg(byte c) | |||
492 | case TS_SUB1: | 492 | case TS_SUB1: |
493 | if (c == IAC) | 493 | if (c == IAC) |
494 | G.telstate = TS_SUB2; | 494 | G.telstate = TS_SUB2; |
495 | #ifdef BB_FEATURE_TELNET_TTYPE | 495 | #ifdef CONFIG_FEATURE_TELNET_TTYPE |
496 | else | 496 | else |
497 | if (c == TELOPT_TTYPE) | 497 | if (c == TELOPT_TTYPE) |
498 | putiac_subopt(TELOPT_TTYPE,ttype); | 498 | putiac_subopt(TELOPT_TTYPE,ttype); |
@@ -537,7 +537,7 @@ extern int telnet_main(int argc, char** argv) | |||
537 | int maxfd; | 537 | int maxfd; |
538 | #endif | 538 | #endif |
539 | 539 | ||
540 | #ifdef BB_FEATURE_TELNET_TTYPE | 540 | #ifdef CONFIG_FEATURE_TELNET_TTYPE |
541 | ttype = getenv("TERM"); | 541 | ttype = getenv("TERM"); |
542 | #endif | 542 | #endif |
543 | 543 | ||