[前][次][番号順一覧][スレッド一覧]

ruby-changes:20199

From: naruse <ko1@a...>
Date: Mon, 27 Jun 2011 11:45:42 +0900 (JST)
Subject: [ruby-changes:20199] naruse:r32247 (trunk): Addtitional fix for previous commit.

naruse	2011-06-27 11:45:30 +0900 (Mon, 27 Jun 2011)

  New Revision: 32247

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=32247

  Log:
    Addtitional fix for previous commit.

  Modified files:
    trunk/thread_pthread.c

Index: thread_pthread.c
===================================================================
--- thread_pthread.c	(revision 32246)
+++ thread_pthread.c	(revision 32247)
@@ -1018,7 +1018,7 @@
     }
 }
 
-static int
+static ssize_t
 consume_communication_pipe(void)
 {
     const size_t buff_size = 1024;
@@ -1058,7 +1058,6 @@
 {
     rb_global_vm_lock_t *gvl = (rb_global_vm_lock_t *)p;
     int result;
-    int len;
     struct timeval timeout;
 
     if (TT_DEBUG) fprintf(stderr, "start timer thread\n");
@@ -1091,7 +1090,7 @@
 	    /* maybe timeout */
 	}
 	else if (result > 0) {
-	    len = consume_communication_pipe();
+	    (void)consume_communication_pipe();
 	}
 	else { /* result < 0 */
 	    if (errno == EINTR) {

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]