mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
- Warning fixes by Steph
This commit is contained in:
parent
84fc80064b
commit
5a69b29082
17 changed files with 36 additions and 36 deletions
|
@ -67,13 +67,13 @@ PHPAPI int php_select(int max_fd, fd_set *rfds, fd_set *wfds, fd_set *efds, stru
|
|||
if ((DWORD)handles[n_handles] == 0xffffffff) {
|
||||
/* socket */
|
||||
if (SAFE_FD_ISSET(i, rfds)) {
|
||||
FD_SET(i, &sock_read);
|
||||
FD_SET((uint)i, &sock_read);
|
||||
}
|
||||
if (SAFE_FD_ISSET(i, wfds)) {
|
||||
FD_SET(i, &sock_write);
|
||||
FD_SET((uint)i, &sock_write);
|
||||
}
|
||||
if (SAFE_FD_ISSET(i, efds)) {
|
||||
FD_SET(i, &sock_except);
|
||||
FD_SET((uint)i, &sock_except);
|
||||
}
|
||||
if (i > sock_max_fd) {
|
||||
sock_max_fd = i;
|
||||
|
@ -136,13 +136,13 @@ PHPAPI int php_select(int max_fd, fd_set *rfds, fd_set *wfds, fd_set *efds, stru
|
|||
for (i = 0; i < n_handles; i++) {
|
||||
if (WAIT_OBJECT_0 == WaitForSingleObject(handles[i], 0)) {
|
||||
if (SAFE_FD_ISSET(handle_slot_to_fd[i], rfds)) {
|
||||
FD_SET(handle_slot_to_fd[i], &aread);
|
||||
FD_SET((uint)handle_slot_to_fd[i], &aread);
|
||||
}
|
||||
if (SAFE_FD_ISSET(handle_slot_to_fd[i], wfds)) {
|
||||
FD_SET(handle_slot_to_fd[i], &awrite);
|
||||
FD_SET((uint)handle_slot_to_fd[i], &awrite);
|
||||
}
|
||||
if (SAFE_FD_ISSET(handle_slot_to_fd[i], efds)) {
|
||||
FD_SET(handle_slot_to_fd[i], &aexcept);
|
||||
FD_SET((uint)handle_slot_to_fd[i], &aexcept);
|
||||
}
|
||||
retcode++;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue