From f4d2374b45bf893b5adf34470e9f20d55143c5ac Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 27 Jun 2012 05:37:15 +0000 Subject: adjust style. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'thread.c') 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); -- cgit v1.2.3