summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--ext/dl/lib/dl/func.rb2
-rw-r--r--ext/dl/win32/lib/win32/resolv.rb6
3 files changed, 11 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index e40a8092b47..bc0d9a10cbb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Tue Mar 3 16:51:51 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/dl/win32/lib/win32/resolv.rb: get rid of warning.
+
+ * ext/dl/lib/dl/func.rb: ditto.
+
Tue Mar 3 16:25:43 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/extmk.rb (extmake), lib/mkmf.rb (create_makefile): $objs and
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