1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

Change to use POSIX confirmed select argments unconditionally

Current condition is unsufficient, and It is already used unconditionally
in other sources.
This commit is contained in:
OBATA Akio 2021-09-30 15:53:59 +09:00
parent 566afbd071
commit ed90eb7f45

View file

@ -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) */;
}