diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-27 05:37:15 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-27 05:37:15 +0000 |
commit | f4d2374b45bf893b5adf34470e9f20d55143c5ac (patch) | |
tree | 651583577b0e27bb9416d55a3b79cc1ad15b0506 /thread.c | |
parent | 07d9c294a2c873db7b945fbaa0d2664a0eeeb76d (diff) | |
download | ruby-f4d2374b45bf893b5adf34470e9f20d55143c5ac.tar.gz |
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.c | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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); |