summaryrefslogtreecommitdiff
path: root/thread_pthread.c
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-27 13:05:22 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-27 13:05:22 +0000
commitf8cc7796801c48be0a31c892ec7e39b79b4f08ed (patch)
tree2ce5a2ef945c4d0a12a12df7a812f809f9860615 /thread_pthread.c
parentd647b5358ed5c7f07b3aa500b40297568a882975 (diff)
* thread_pthread.c (consume_communication_pipe): change return
type to void. caller doesn't use it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_pthread.c')
-rw-r--r--thread_pthread.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index 2c5e31a4ce..cd1631261d 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -1018,7 +1018,7 @@ rb_thread_wakeup_timer_thread(void)
}
}
-static ssize_t
+static void
consume_communication_pipe(void)
{
const size_t buff_size = 1024;
@@ -1033,7 +1033,6 @@ consume_communication_pipe(void)
rb_bug_errno("consume_communication_pipe: read", errno);
}
}
- return result;
}
static void
@@ -1090,7 +1089,7 @@ thread_timer(void *p)
/* maybe timeout */
}
else if (result > 0) {
- (void)consume_communication_pipe();
+ consume_communication_pipe();
}
else { /* result < 0 */
if (errno == EINTR) {