diff options
author | brianp <brianp@13f79535-47bb-0310-9956-ffa450edef68> | 2002-08-02 05:42:23 +0000 |
---|---|---|
committer | brianp <brianp@13f79535-47bb-0310-9956-ffa450edef68> | 2002-08-02 05:42:23 +0000 |
commit | edcb239281f362c937c0a9912d0ceee295bb3a64 (patch) | |
tree | 67b4726a88328f956b3dca0ed507f3eccf5da84d /poll/unix | |
parent | e2cda59108782b9c9da3b532eacbf5b7d0094558 (diff) | |
download | libapr-edcb239281f362c937c0a9912d0ceee295bb3a64.tar.gz |
more win32 socket descriptor signedness fixes
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63763 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poll/unix')
-rw-r--r-- | poll/unix/poll.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/poll/unix/poll.c b/poll/unix/poll.c index ffb54f5d3..9b25504d1 100644 --- a/poll/unix/poll.c +++ b/poll/unix/poll.c @@ -216,8 +216,8 @@ APR_DECLARE(apr_status_t) apr_poll(apr_pollfd_t *aprset, int num, apr_int32_t *n (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_DECLARE(apr_status_t) apr_pollset_add(apr_pollset_t *pollset, (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 @@ APR_DECLARE(apr_status_t) apr_pollset_remove(apr_pollset_t *pollset, 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; |