diff --git a/lib/facter/resolvers/solaris/ffi/functions.rb b/lib/facter/resolvers/solaris/ffi/functions.rb index 2da4ea3786..e13bc92d52 100644 --- a/lib/facter/resolvers/solaris/ffi/functions.rb +++ b/lib/facter/resolvers/solaris/ffi/functions.rb @@ -10,7 +10,7 @@ module Ioctl attach_function :ioctl_base, :ioctl, %i[int int pointer], :int attach_function :open_socket, :socket, %i[int int int], :int - attach_function :close_socket, :shutdown, %i[int int], :int + attach_function :close_socket, :close, %i[int], :int attach_function :inet_ntop, %i[int pointer pointer uint], :string def self.ioctl(call_const, pointer, address_family = AF_INET) @@ -18,7 +18,7 @@ def self.ioctl(call_const, pointer, address_family = AF_INET) begin ioctl_base(fd, call_const, pointer) ensure - Ioctl.close_socket(fd, 2) + Ioctl.close_socket(fd) end end end diff --git a/lib/facter/resolvers/solaris/networking.rb b/lib/facter/resolvers/solaris/networking.rb index 73ccc8ea05..a21e36ae37 100644 --- a/lib/facter/resolvers/solaris/networking.rb +++ b/lib/facter/resolvers/solaris/networking.rb @@ -79,7 +79,7 @@ def add_mtu(lifreq) ioctl = FFI::Ioctl.ioctl(FFI::SIOCGLIFMTU, lifreq, lifreq.ss_family) if ioctl == -1 - @log.error("Cold not read MTU, error code is #{::FFI::LastError.error}") + @log.error("Could not read MTU, error code is: #{::FFI::LastError.error}") return end