diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-10-19 16:07:28 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-10-19 16:07:28 +0200 |
commit | 36df04837ad54a4eb559e5c69a81aeeb4d981a72 (patch) | |
tree | 3685f248b18cbab68ad7a8dd5625932a2adab361 /networking | |
parent | 3b3ccdc5bc530e824a55ebc8d57c34f0ca6a30c9 (diff) | |
download | busybox-w32-36df04837ad54a4eb559e5c69a81aeeb4d981a72.tar.gz busybox-w32-36df04837ad54a4eb559e5c69a81aeeb4d981a72.tar.bz2 busybox-w32-36df04837ad54a4eb559e5c69a81aeeb4d981a72.zip |
randomconfig fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r-- | networking/telnetd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/networking/telnetd.c b/networking/telnetd.c index 2a0ace5cb..163efaa42 100644 --- a/networking/telnetd.c +++ b/networking/telnetd.c | |||
@@ -562,13 +562,15 @@ int telnetd_main(int argc UNUSED_PARAM, char **argv) | |||
562 | } | 562 | } |
563 | 563 | ||
564 | { | 564 | { |
565 | struct timeval tv; | ||
566 | struct timeval *tv_ptr = NULL; | 565 | struct timeval *tv_ptr = NULL; |
566 | #if ENABLE_FEATURE_TELNETD_INETD_WAIT | ||
567 | struct timeval tv; | ||
567 | if ((opt & OPT_WAIT) && !G.sessions) { | 568 | if ((opt & OPT_WAIT) && !G.sessions) { |
568 | tv.tv_sec = sec_linger; | 569 | tv.tv_sec = sec_linger; |
569 | tv.tv_usec = 0; | 570 | tv.tv_usec = 0; |
570 | tv_ptr = &tv; | 571 | tv_ptr = &tv; |
571 | } | 572 | } |
573 | #endif | ||
572 | count = select(G.maxfd + 1, &rdfdset, &wrfdset, NULL, tv_ptr); | 574 | count = select(G.maxfd + 1, &rdfdset, &wrfdset, NULL, tv_ptr); |
573 | } | 575 | } |
574 | if (count == 0) /* "telnetd -w SEC" timed out */ | 576 | if (count == 0) /* "telnetd -w SEC" timed out */ |