summaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenys Vlasenko2009-10-19 16:07:28 +0200
committerDenys Vlasenko2009-10-19 16:07:28 +0200
commit36df04837ad54a4eb559e5c69a81aeeb4d981a72 (patch)
tree3685f248b18cbab68ad7a8dd5625932a2adab361 /networking
parent3b3ccdc5bc530e824a55ebc8d57c34f0ca6a30c9 (diff)
downloadbusybox-36df04837ad54a4eb559e5c69a81aeeb4d981a72.zip
busybox-36df04837ad54a4eb559e5c69a81aeeb4d981a72.tar.gz
randomconfig fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r--networking/telnetd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/networking/telnetd.c b/networking/telnetd.c
index 2a0ace5..163efaa 100644
--- a/networking/telnetd.c
+++ b/networking/telnetd.c
@@ -562,13 +562,15 @@ int telnetd_main(int argc UNUSED_PARAM, char **argv)
}
{
- struct timeval tv;
struct timeval *tv_ptr = NULL;
+#if ENABLE_FEATURE_TELNETD_INETD_WAIT
+ struct timeval tv;
if ((opt & OPT_WAIT) && !G.sessions) {
tv.tv_sec = sec_linger;
tv.tv_usec = 0;
tv_ptr = &tv;
}
+#endif
count = select(G.maxfd + 1, &rdfdset, &wrfdset, NULL, tv_ptr);
}
if (count == 0) /* "telnetd -w SEC" timed out */