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

ruby-changes:19427

From: kosaki <ko1@a...>
Date: Sat, 7 May 2011 22:44:33 +0900 (JST)
Subject: [ruby-changes:19427] Ruby:r31467 (trunk): * thread.c (rb_fd_zero): remove redundant zero fill.

kosaki	2011-05-07 22:44:27 +0900 (Sat, 07 May 2011)

  New Revision: 31467

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

  Log:
    * thread.c (rb_fd_zero): remove redundant zero fill.

  Modified files:
    trunk/ChangeLog
    trunk/thread.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 31466)
+++ ChangeLog	(revision 31467)
@@ -1,3 +1,7 @@
+Sat May  7 22:43:48 2011  KOSAKI Motohiro  <kosaki.motohiro@g...>
+
+	* thread.c (rb_fd_zero): remove redundant zero fill.
+
 Sat May  7 22:38:04 2011  KOSAKI Motohiro  <kosaki.motohiro@g...>
 
 	* thread.c (rb_fd_init): remove volatile qualifier.
Index: thread.c
===================================================================
--- thread.c	(revision 31466)
+++ thread.c	(revision 31467)
@@ -2350,10 +2350,8 @@
 void
 rb_fd_zero(rb_fdset_t *fds)
 {
-    if (fds->fdset) {
+    if (fds->fdset)
 	MEMZERO(fds->fdset, fd_mask, howmany(fds->maxfd, NFDBITS));
-	FD_ZERO(fds->fdset);
-    }
 }
 
 static void

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

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