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

ruby-changes:20202

From: kosaki <ko1@a...>
Date: Mon, 27 Jun 2011 22:05:36 +0900 (JST)
Subject: [ruby-changes:20202] kosaki:r32250 (trunk): * thread_pthread.c (consume_communication_pipe): change return

kosaki	2011-06-27 22:05:22 +0900 (Mon, 27 Jun 2011)

  New Revision: 32250

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

  Log:
    * thread_pthread.c (consume_communication_pipe): change return
      type to void. caller doesn't use it.

  Modified files:
    trunk/ChangeLog
    trunk/thread_pthread.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 32249)
+++ ChangeLog	(revision 32250)
@@ -1,3 +1,8 @@
+Mon Jun 27 22:04:27 2011  KOSAKI Motohiro  <kosaki.motohiro@g...>
+
+	* thread_pthread.c (consume_communication_pipe): change return
+	  type to void. caller doesn't use it.
+
 Mon Jun 27 21:29:50 2011  KOSAKI Motohiro  <kosaki.motohiro@g...>
 
 	* thread_pthread.h (rb_global_vm_lock_struct): add volatile to
Index: thread_pthread.c
===================================================================
--- thread_pthread.c	(revision 32249)
+++ thread_pthread.c	(revision 32250)
@@ -1018,7 +1018,7 @@
     }
 }
 
-static ssize_t
+static void
 consume_communication_pipe(void)
 {
     const size_t buff_size = 1024;
@@ -1033,7 +1033,6 @@
 	    rb_bug_errno("consume_communication_pipe: read", errno);
 	}
     }
-    return result;
 }
 
 static void
@@ -1090,7 +1089,7 @@
 	    /* maybe timeout */
 	}
 	else if (result > 0) {
-	    (void)consume_communication_pipe();
+	    consume_communication_pipe();
 	}
 	else { /* result < 0 */
 	    if (errno == EINTR) {

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

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