summaryrefslogtreecommitdiff
path: root/networking/telnetd.c
diff options
context:
space:
mode:
authorDenis Vlasenko2007-01-12 14:57:37 +0000
committerDenis Vlasenko2007-01-12 14:57:37 +0000
commit2c91652bbcc82c794c26230806058b04f1711033 (patch)
tree1195f7c7fba68bdaf175d85432bf60a60a8c29f0 /networking/telnetd.c
parent6536a9b5833febe719988526a095a9cacb8a1042 (diff)
downloadbusybox-2c91652bbcc82c794c26230806058b04f1711033.zip
busybox-2c91652bbcc82c794c26230806058b04f1711033.tar.gz
next part of ipv6-ization. dnsd code is "interesting"...
Diffstat (limited to 'networking/telnetd.c')
-rw-r--r--networking/telnetd.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/networking/telnetd.c b/networking/telnetd.c
index dd5d55d..ff83c93 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 */