Skip to content

Commit

Permalink
Fix inappropriate language in NIOSSL (apple#233)
Browse files Browse the repository at this point in the history
Motivation:

It's also 2020 in NIOSSL, and just like in NIO, there's no good reason
to use exclusionary terminology when perfectly good alternatives exist.

Modifications:

Removed exclusionary language.

Result:

Clearer codebase.
  • Loading branch information
Lukasa authored Jul 10, 2020
1 parent b94f2b6 commit 3a012b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/NIOSSL/PosixPort.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ private let sysStat: @convention(c) (UnsafePointer<CChar>, UnsafeMutablePointer<


// MARK:- Copied code from SwiftNIO
private func isBlacklistedErrno(_ code: CInt) -> Bool {
private func isUnacceptableErrno(_ code: CInt) -> Bool {
switch code {
case EFAULT, EBADF:
return true
Expand All @@ -55,7 +55,7 @@ internal func wrapSyscall<T: FixedWidthInteger>(where function: String = #functi
if err == EINTR {
continue
}
assert(!isBlacklistedErrno(err), "blacklisted errno \(err) \(strerror(err)!)")
assert(!isUnacceptableErrno(err), "unacceptable errno \(err) \(strerror(err)!)")
throw IOError(errnoCode: err, reason: function)
}
return res
Expand All @@ -71,7 +71,7 @@ internal func wrapErrorIsNullReturnCall<T>(where function: String = #function, _
if err == EINTR {
continue
}
assert(!isBlacklistedErrno(err), "blacklisted errno \(err) \(strerror(err)!)")
assert(!isUnacceptableErrno(err), "unacceptable errno \(err) \(strerror(err)!)")
throw IOError(errnoCode: err, reason: function)
}
return res
Expand Down

0 comments on commit 3a012b8

Please sign in to comment.