diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-12 14:57:37 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-12 14:57:37 +0000 |
commit | 2c91652bbcc82c794c26230806058b04f1711033 (patch) | |
tree | 1195f7c7fba68bdaf175d85432bf60a60a8c29f0 /networking/telnetd.c | |
parent | 6536a9b5833febe719988526a095a9cacb8a1042 (diff) | |
download | busybox-w32-2c91652bbcc82c794c26230806058b04f1711033.tar.gz busybox-w32-2c91652bbcc82c794c26230806058b04f1711033.tar.bz2 busybox-w32-2c91652bbcc82c794c26230806058b04f1711033.zip |
next part of ipv6-ization. dnsd code is "interesting"...
Diffstat (limited to 'networking/telnetd.c')
-rw-r--r-- | networking/telnetd.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/networking/telnetd.c b/networking/telnetd.c index dd5d55de0..ff83c93da 100644 --- a/networking/telnetd.c +++ b/networking/telnetd.c | |||
@@ -36,12 +36,6 @@ | |||
36 | 36 | ||
37 | #define BUFSIZE 4000 | 37 | #define BUFSIZE 4000 |
38 | 38 | ||
39 | #if ENABLE_FEATURE_IPV6 | ||
40 | typedef struct sockaddr_in6 sockaddr_type; | ||
41 | #else | ||
42 | typedef struct sockaddr_in sockaddr_type; | ||
43 | #endif | ||
44 | |||
45 | #if ENABLE_LOGIN | 39 | #if ENABLE_LOGIN |
46 | static const char *loginpath = "/bin/login"; | 40 | static const char *loginpath = "/bin/login"; |
47 | #else | 41 | #else |
@@ -462,13 +456,10 @@ telnetd_main(int argc, char **argv) | |||
462 | #if ENABLE_FEATURE_TELNETD_STANDALONE | 456 | #if ENABLE_FEATURE_TELNETD_STANDALONE |
463 | /* First check for and accept new sessions. */ | 457 | /* First check for and accept new sessions. */ |
464 | if (!IS_INETD && FD_ISSET(master_fd, &rdfdset)) { | 458 | if (!IS_INETD && FD_ISSET(master_fd, &rdfdset)) { |
465 | sockaddr_type sa; | ||
466 | int fd; | 459 | int fd; |
467 | socklen_t salen; | ||
468 | struct tsession *new_ts; | 460 | struct tsession *new_ts; |
469 | 461 | ||
470 | salen = sizeof(sa); | 462 | fd = accept(master_fd, NULL, 0); |
471 | fd = accept(master_fd, (struct sockaddr *)&sa, &salen); | ||
472 | if (fd < 0) | 463 | if (fd < 0) |
473 | goto again; | 464 | goto again; |
474 | /* Create a new session and link it into our active list */ | 465 | /* Create a new session and link it into our active list */ |