summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/thread.c b/thread.c
index 6ad4503470..279dc81aea 100644
--- a/thread.c
+++ b/thread.c
@@ -2725,8 +2725,9 @@ rb_thread_fd_select(int max, rb_fdset_t * read, rb_fdset_t * write, rb_fdset_t *
#ifndef HAVE_PPOLL
/* TODO: don't ignore sigmask */
-int ppoll(struct pollfd *fds, nfds_t nfds,
- const struct timespec *ts, const sigset_t *sigmask)
+int
+ppoll(struct pollfd *fds, nfds_t nfds,
+ const struct timespec *ts, const sigset_t *sigmask)
{
int timeout_ms;
@@ -2743,7 +2744,8 @@ int ppoll(struct pollfd *fds, nfds_t nfds,
else
timeout_ms = tmp + tmp2;
}
- } else
+ }
+ else
timeout_ms = -1;
return poll(fds, nfds, timeout_ms);
@@ -2822,7 +2824,8 @@ retry:
return result;
}
#else /* ! USE_POLL - implement rb_io_poll_fd() using select() */
-static rb_fdset_t *init_set_fd(int fd, rb_fdset_t *fds)
+static rb_fdset_t *
+init_set_fd(int fd, rb_fdset_t *fds)
{
rb_fd_init(fds);
rb_fd_set(fd, fds);