Skip to content

Commit ebf8cff

Browse files
committed
update for removal of sockaddr(bytes:) initializer
1 parent b45bd38 commit ebf8cff

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Package.resolved

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sources/IORingUtils/Extensions.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// Copyright (c) 2023 PADL Software Pty Ltd
2+
// Copyright (c) 2023-2025 PADL Software Pty Ltd
33
//
44
// Licensed under the Apache License, Version 2.0 (the License);
55
// you may not use this file except in compliance with the License.
@@ -45,7 +45,7 @@ extension Message: CustomStringConvertible {
4545
}
4646

4747
public var description: String {
48-
let address = (try? sockaddr(bytes: name).presentationAddress) ?? "<unknown>"
48+
let address = (try? sockaddr_storage(bytes: name).presentationAddress) ?? "<unknown>"
4949
return "\(type(of: self))(address: \(address), buffer: \(hexDescription(buffer)), flags: \(flags))"
5050
}
5151
}

0 commit comments

Comments
 (0)