brianp 2002/08/01 22:42:23
Modified: poll/unix poll.c
Log:
more win32 socket descriptor signedness fixes
Revision Changes Path
1.16 +5 -5 apr/poll/unix/poll.c
Index: poll.c
===================================================================
RCS file: /home/cvs/apr/poll/unix/poll.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- poll.c 2 Aug 2002 05:12:35 -0000 1.15
+++ poll.c 2 Aug 2002 05:42:23 -0000 1.16
@@ -216,8 +216,8 @@
(APR_POLLPRI | APR_POLLERR | APR_POLLHUP | APR_POLLNVAL)) {
FD_SET(fd, &exceptset);
}
- if (fd > maxfd) {
- maxfd = fd;
+ if ((int)fd > maxfd) {
+ maxfd = (int)fd;
}
}
@@ -367,8 +367,8 @@
(APR_POLLPRI | APR_POLLERR | APR_POLLHUP | APR_POLLNVAL)) {
FD_SET(fd, &(pollset->exceptset));
}
- if (fd > pollset->maxfd) {
- pollset->maxfd = fd;
+ if ((int)fd > pollset->maxfd) {
+ pollset->maxfd = (int)fd;
}
#endif
pollset->nelts++;
@@ -432,7 +432,7 @@
FD_CLR(fd, &(pollset->readset));
FD_CLR(fd, &(pollset->writeset));
FD_CLR(fd, &(pollset->exceptset));
- if ((fd == pollset->maxfd) && (pollset->maxfd > 0)) {
+ if (((int)fd == pollset->maxfd) && (pollset->maxfd > 0)) {
pollset->maxfd--;
}
return APR_SUCCESS;