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) |
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 @@ #define BUFSIZE 4000 -#if ENABLE_FEATURE_IPV6 -typedef struct sockaddr_in6 sockaddr_type; -#else -typedef struct sockaddr_in sockaddr_type; -#endif - #if ENABLE_LOGIN static const char *loginpath = "/bin/login"; #else @@ -462,13 +456,10 @@ telnetd_main(int argc, char **argv) #if ENABLE_FEATURE_TELNETD_STANDALONE /* First check for and accept new sessions. */ if (!IS_INETD && FD_ISSET(master_fd, &rdfdset)) { - sockaddr_type sa; int fd; - socklen_t salen; struct tsession *new_ts; - salen = sizeof(sa); - fd = accept(master_fd, (struct sockaddr *)&sa, &salen); + fd = accept(master_fd, NULL, 0); if (fd < 0) goto again; /* Create a new session and link it into our active list */ |