summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--ext/socket/lib/socket.rb3
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index b9ad004..6eea40b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/ext/socket/lib/socket.rb b/ext/socket/lib/socket.rb
index a568b60..b7dc446 100644
--- a/ext/socket/lib/socket.rb
+++ b/ext/socket/lib/socket.rb
@@ -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