aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-05-10 17:18:11 +0000
committervapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-05-10 17:18:11 +0000
commit38088efe9838585c590a8ce30942cee0488fdbbf (patch)
tree14a92d771b09819b64b9154546c488ac6b84076d
parent99e546a884086bd2b270bdea5befd4b33ca087d7 (diff)
downloadbusybox-w32-38088efe9838585c590a8ce30942cee0488fdbbf.tar.gz
busybox-w32-38088efe9838585c590a8ce30942cee0488fdbbf.tar.bz2
busybox-w32-38088efe9838585c590a8ce30942cee0488fdbbf.zip
accept() takes a socklen_t, not an int
git-svn-id: svn://busybox.net/trunk/busybox@15054 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--networking/telnetd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/networking/telnetd.c b/networking/telnetd.c
index 41e4707a3..d51560bfb 100644
--- a/networking/telnetd.c
+++ b/networking/telnetd.c
@@ -525,7 +525,8 @@ telnetd_main(int argc, char **argv)
525#ifndef CONFIG_FEATURE_TELNETD_INETD 525#ifndef CONFIG_FEATURE_TELNETD_INETD
526 /* First check for and accept new sessions. */ 526 /* First check for and accept new sessions. */
527 if (FD_ISSET(master_fd, &rdfdset)) { 527 if (FD_ISSET(master_fd, &rdfdset)) {
528 int fd, salen; 528 int fd;
529 socklen_t salen;
529 530
530 salen = sizeof(sa); 531 salen = sizeof(sa);
531 if ((fd = accept(master_fd, (struct sockaddr *)&sa, 532 if ((fd = accept(master_fd, (struct sockaddr *)&sa,