diff options
Diffstat (limited to 'networking/telnet.c')
-rw-r--r-- | networking/telnet.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/networking/telnet.c b/networking/telnet.c index 86586600b..fc70cc406 100644 --- a/networking/telnet.c +++ b/networking/telnet.c | |||
@@ -95,8 +95,6 @@ static void telopt(byte c); | |||
95 | static int subneg(byte c); | 95 | static int subneg(byte c); |
96 | 96 | ||
97 | /* Some globals */ | 97 | /* Some globals */ |
98 | static const int one = 1; | ||
99 | |||
100 | #ifdef CONFIG_FEATURE_TELNET_TTYPE | 98 | #ifdef CONFIG_FEATURE_TELNET_TTYPE |
101 | static char *ttype; | 99 | static char *ttype; |
102 | #endif | 100 | #endif |
@@ -630,7 +628,7 @@ int telnet_main(int argc, char** argv) | |||
630 | 628 | ||
631 | G.netfd = create_and_connect_stream_or_die(host, port); | 629 | G.netfd = create_and_connect_stream_or_die(host, port); |
632 | 630 | ||
633 | setsockopt(G.netfd, SOL_SOCKET, SO_KEEPALIVE, &one, sizeof one); | 631 | setsockopt(G.netfd, SOL_SOCKET, SO_KEEPALIVE, &const_int_1, sizeof(const_int_1)); |
634 | 632 | ||
635 | signal(SIGINT, fgotsig); | 633 | signal(SIGINT, fgotsig); |
636 | 634 | ||