Skip to content

Commit 2c386b1

Browse files
committed
Update LinkLayerSocketAddress
1 parent 1b5b7ea commit 2c386b1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Sources/Socket/System/SocketAddress/LinkLayerSocketAddress.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public struct LinkLayerSocketAddress: SocketAddress, Equatable, Hashable {
5151
}
5252

5353
public func withUnsafePointer<Result, Error>(
54-
_ body: (UnsafePointer<CInterop.SocketAddress>, UInt32) throws(Error) -> Result
54+
_ body: (UnsafePointer<CInterop.SocketAddress>, CInterop.SocketLength) throws(Error) -> Result
5555
) rethrows -> Result where Error: Swift.Error {
5656

5757
var socketAddress = CSocketAddressType()
@@ -76,7 +76,7 @@ public struct LinkLayerSocketAddress: SocketAddress, Equatable, Hashable {
7676
}
7777

7878
public static func withUnsafePointer(
79-
_ body: (UnsafeMutablePointer<CInterop.SocketAddress>, UInt32) throws -> ()
79+
_ body: (UnsafeMutablePointer<CInterop.SocketAddress>, CInterop.SocketLength) throws -> ()
8080
) rethrows -> Self {
8181
var socketAddress = CSocketAddressType()
8282
try socketAddress.withUnsafeMutablePointer(body)

0 commit comments

Comments
 (0)