         )
         while addr_list[counter] != nil {
             var address = addr_list[counter].memory
-            if let str = inet_ntop(family, addr: &address) {
+            if let str = inet_ntop(&address, type: family) {
                 record.addresses.append(str)
             }
             counter += 1

        let hostname_val: (ptr: UnsafeMutablePointer, len: Int) =
        hostname?.getCString ?? (nil, 0)
        let servname_val: (ptr: UnsafeMutablePointer, len: Int) =
        servername?.getCString ?? (nil, 0)
        
        defer {
            if hostname_val.len > 0 {

    
    @available(*, unavailable, renamed="GetAddressInfoFailed")
    case GetAddressFailed(Int32)
    /// Thrown by `getnameinfo(
    case GetNameInfoFailed(Int32)
    /// Occurs when an invalid parameter is given.
    case ParameterError(String)
