Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/poll.cc')
-rw-r--r--winsup/cygwin/poll.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/winsup/cygwin/poll.cc b/winsup/cygwin/poll.cc
index 36c61cfcc..3c61c565e 100644
--- a/winsup/cygwin/poll.cc
+++ b/winsup/cygwin/poll.cc
@@ -35,7 +35,7 @@ poll (struct pollfd *fds, unsigned int nfds, int timeout)
if (fds[i].fd > max_fd)
max_fd = fds[i].fd;
- size_t fds_size = howmany(max_fd + 1, NFDBITS) * sizeof (fd_mask);
+ size_t fds_size = howmany (max_fd + 1, NFDBITS) * sizeof (fd_mask);
read_fds = (fd_set *) alloca (fds_size);
write_fds = (fd_set *) alloca (fds_size);
@@ -55,7 +55,7 @@ poll (struct pollfd *fds, unsigned int nfds, int timeout)
for (unsigned int i = 0; i < nfds; ++i)
{
fds[i].revents = 0;
- if (!cygheap->fdtab.not_open(fds[i].fd))
+ if (!cygheap->fdtab.not_open (fds[i].fd))
{
if (fds[i].events & POLLIN)
FD_SET(fds[i].fd, read_fds);
@@ -81,7 +81,7 @@ poll (struct pollfd *fds, unsigned int nfds, int timeout)
{
if (fds[i].fd >= 0)
{
- if (cygheap->fdtab.not_open(fds[i].fd))
+ if (cygheap->fdtab.not_open (fds[i].fd))
fds[i].revents = POLLHUP;
else
{
@@ -93,7 +93,7 @@ poll (struct pollfd *fds, unsigned int nfds, int timeout)
if (!sock)
fds[i].revents |= POLLIN;
else
- switch (sock->recvfrom (peek, sizeof(peek), MSG_PEEK,
+ switch (sock->recvfrom (peek, sizeof (peek), MSG_PEEK,
NULL, NULL))
{
case -1: /* Something weird happened */