*: do not check for POLLIN/POLLOUT only, just in case it's POLHUP/POLERR

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2010-03-02 15:02:45 +01:00
parent d2f7779671
commit 88aa558e5c
4 changed files with 9 additions and 9 deletions

View File

@@ -618,7 +618,7 @@ int telnet_main(int argc UNUSED_PARAM, char **argv)
default:
#ifdef USE_POLL
if (ufds[0].revents & POLLIN)
if (ufds[0].revents)
#else
if (FD_ISSET(STDIN_FILENO, &rfds))
#endif
@@ -631,7 +631,7 @@ int telnet_main(int argc UNUSED_PARAM, char **argv)
}
#ifdef USE_POLL
if (ufds[1].revents & POLLIN)
if (ufds[1].revents)
#else
if (FD_ISSET(netfd, &rfds))
#endif