From ed90eb7f456cb94e38c15ce3b7228a825a17c1d0 Mon Sep 17 00:00:00 2001 From: OBATA Akio Date: Thu, 30 Sep 2021 15:53:59 +0900 Subject: [PATCH] Change to use POSIX confirmed `select` argments unconditionally Current condition is unsufficient, and It is already used unconditionally in other sources. --- cde/lib/DtSvc/DtEncap/local.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/cde/lib/DtSvc/DtEncap/local.c b/cde/lib/DtSvc/DtEncap/local.c index a8f4dbe71..d9c518c32 100644 --- a/cde/lib/DtSvc/DtEncap/local.c +++ b/cde/lib/DtSvc/DtEncap/local.c @@ -202,12 +202,7 @@ void local_channel_object_input_handler(void * client_data, timeout.tv_sec = 0; timeout.tv_usec = 0; -#if defined(SVR4) || defined(__hpux) || defined(__OpenBSD__) || defined(__linux__) - select(max_fds, (fd_set*)&read_fd_vect, NULL, (fd_set*)&except_fd_vect, &timeout); -#else - /* UX has select defined with int*, not fd_set* parms */ - select(max_fds, (int*)&read_fd_vect, NULL, (int*)&except_fd_vect, &timeout); -#endif + select(max_fds, &read_fd_vect, NULL, &except_fd_vect, &timeout); if(! (FD_ISSET(fd, &read_fd_vect) || FD_ISSET(fd, &except_fd_vect))) { return /* (FALSE) */; }