summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger2006-05-10 17:18:11 +0000
committerMike Frysinger2006-05-10 17:18:11 +0000
commit06b00e8ba78376e8e2c17b3b8507ade85421fe4b (patch)
tree14a92d771b09819b64b9154546c488ac6b84076d
parentd2c8fd63606880e90e6fa96356f99a71ab678616 (diff)
downloadbusybox-06b00e8ba78376e8e2c17b3b8507ade85421fe4b.zip
busybox-06b00e8ba78376e8e2c17b3b8507ade85421fe4b.tar.gz
accept() takes a socklen_t, not an int
-rw-r--r--networking/telnetd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/networking/telnetd.c b/networking/telnetd.c
index 41e4707..d51560b 100644
--- a/networking/telnetd.c
+++ b/networking/telnetd.c
@@ -525,7 +525,8 @@ telnetd_main(int argc, char **argv)
#ifndef CONFIG_FEATURE_TELNETD_INETD
/* First check for and accept new sessions. */
if (FD_ISSET(master_fd, &rdfdset)) {
- int fd, salen;
+ int fd;
+ socklen_t salen;
salen = sizeof(sa);
if ((fd = accept(master_fd, (struct sockaddr *)&sa,