summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-03 07:52:42 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-03 07:52:42 +0000
commitdba06de110c9ba74a58253f5be8a9293980d7bff (patch)
tree10d8d604f19740dfca4adbc83dca2164cc728296 /ext
parent2b3a2048328e23810283f83d23fa20a63242c0fe (diff)
* ext/dl/win32/lib/win32/resolv.rb: get rid of warning.
* ext/dl/lib/dl/func.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/dl/lib/dl/func.rb2
-rw-r--r--ext/dl/win32/lib/win32/resolv.rb6
2 files changed, 5 insertions, 3 deletions
diff --git a/ext/dl/lib/dl/func.rb b/ext/dl/lib/dl/func.rb
index 97f24a68d04..1ec34b7cf30 100644
--- a/ext/dl/lib/dl/func.rb
+++ b/ext/dl/lib/dl/func.rb
@@ -15,6 +15,8 @@ module DL
if( @cfunc.ctype < 0 )
@cfunc.ctype = @cfunc.ctype.abs
@unsigned = true
+ else
+ @unsigned = false
end
if( proc )
bind(&proc)
diff --git a/ext/dl/win32/lib/win32/resolv.rb b/ext/dl/win32/lib/win32/resolv.rb
index cefec61caa8..beb7f40ca40 100644
--- a/ext/dl/win32/lib/win32/resolv.rb
+++ b/ext/dl/win32/lib/win32/resolv.rb
@@ -82,9 +82,9 @@ if info.unpack('V5')[4] == 2 # VER_PLATFORM_WIN32_NT
end
end
- reg.open('Interfaces') do |reg|
- reg.each_key do |iface,|
- reg.open(iface) do |regif|
+ reg.open('Interfaces') do |h|
+ h.each_key do |iface,|
+ h.open(iface) do |regif|
begin
[ 'NameServer', 'DhcpNameServer' ].each do |key|
begin