From 0f5a8418818b404473d15f75a33e226ac38cbb01 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 15 Feb 2016 03:29:00 +0000 Subject: [PATCH] avoid ruby-mode.el bug * ext/win32/lib/win32/{resolv,resolv9x}.rb: get rid of ruby-mode.el of Emacs 24. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/win32/lib/win32/resolv.rb | 2 +- ext/win32/lib/win32/resolv9x.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/win32/lib/win32/resolv.rb b/ext/win32/lib/win32/resolv.rb index b65200be80..2e724e3257 100644 --- a/ext/win32/lib/win32/resolv.rb +++ b/ext/win32/lib/win32/resolv.rb @@ -84,7 +84,7 @@ if info.unpack('V5')[4] == 2 # VER_PLATFORM_WIN32_NT end reg.open('Interfaces') do |h| - h.each_key do |iface,| + h.each_key do |iface, | h.open(iface) do |regif| begin [ 'NameServer', 'DhcpNameServer' ].each do |key| diff --git a/ext/win32/lib/win32/resolv9x.rb b/ext/win32/lib/win32/resolv9x.rb index a08a41fdf8..1045bb2e09 100644 --- a/ext/win32/lib/win32/resolv9x.rb +++ b/ext/win32/lib/win32/resolv9x.rb @@ -57,7 +57,7 @@ module Win32 rescue Registry::Error end - reg.each_key do |key,| + reg.each_key do |key, | catch(:not_used) do reg.open(key) do |regdi| dom, ns = get_dhcpinfo_key(version, regdi, iflist)