summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-27 05:37:15 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-27 05:37:15 +0000
commitf4d2374b45bf893b5adf34470e9f20d55143c5ac (patch)
tree651583577b0e27bb9416d55a3b79cc1ad15b0506 /thread.c
parent07d9c294a2c873db7b945fbaa0d2664a0eeeb76d (diff)
adjust style.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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);