1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/socket/lib/socket.rb: suppress warnings.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2010-06-22 13:41:16 +00:00
parent 85a4f84e79
commit 7d8d8c4f59
2 changed files with 5 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Tue Jun 22 22:00:06 2010 Tanaka Akira <akr@fsij.org>
* ext/socket/lib/socket.rb: suppress warnings.
Tue Jun 22 21:33:23 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/optparse/test_summary.rb: fixed superclass so that it run

View file

@ -488,7 +488,6 @@ class Socket < BasicSocket
def self.udp_server_sockets(host=nil, port)
last_error = nil
sockets = []
addr_hash = {}
ipv6_recvpktinfo = nil
if defined? Socket::AncillaryData
@ -608,7 +607,7 @@ class Socket < BasicSocket
def self.udp_server_loop_on(sockets, &b) # :yield: msg, msg_src
loop {
readable, _, _ = IO.select(sockets)
udp_server_recv(sockets, &b)
udp_server_recv(readable, &b)
}
end