Skip to content

Commit 55c898c

Browse files
committed
Update UnixSocketAddress
1 parent 2c386b1 commit 55c898c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/Socket/System/SocketAddress/UnixSocketAddress.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public struct UnixSocketAddress: SocketAddress, Equatable, Hashable {
2727
}
2828

2929
public func withUnsafePointer<Result, Error>(
30-
_ body: (UnsafePointer<CInterop.SocketAddress>, UInt32) throws(Error) -> Result
30+
_ body: (UnsafePointer<CInterop.SocketAddress>, CInterop.SocketLength) throws(Error) -> Result
3131
) rethrows -> Result where Error: Swift.Error {
3232
return try path.withPlatformString { platformString in
3333
var socketAddress = CInterop.UnixSocketAddress()
@@ -43,7 +43,7 @@ public struct UnixSocketAddress: SocketAddress, Equatable, Hashable {
4343
}
4444

4545
public static func withUnsafePointer(
46-
_ body: (UnsafeMutablePointer<CInterop.SocketAddress>, UInt32) throws -> ()
46+
_ body: (UnsafeMutablePointer<CInterop.SocketAddress>, CInterop.SocketLength) throws -> ()
4747
) rethrows -> Self {
4848
var socketAddress = CInterop.UnixSocketAddress()
4949
try socketAddress.withUnsafeMutablePointer(body)
@@ -64,4 +64,4 @@ extension CInterop.UnixSocketAddress: CSocketAddress {
6464
@_alwaysEmitIntoClient
6565
static var family: SocketAddressFamily { .unix }
6666
}
67-
#endif
67+
#endif

0 commit comments

Comments
 (0)