diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-12-13 20:06:37 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-12-13 20:06:37 +0100 |
commit | 77a26e4cd24ab905b6ec9dbcfd33b3d3e4fc1629 (patch) | |
tree | f694fcbe2a529ffc28040914b9e917361553254f /WireGuard | |
parent | Reorganized ViewControllers (split out UIViews and UITableViewCells into their own classes) (diff) | |
download | wireguard-apple-77a26e4cd24ab905b6ec9dbcfd33b3d3e4fc1629.tar.xz wireguard-apple-77a26e4cd24ab905b6ec9dbcfd33b3d3e4fc1629.zip |
Localize swiftlint
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'WireGuard')
-rw-r--r-- | WireGuard/WireGuardNetworkExtension/PacketTunnelProvider.swift | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/WireGuard/WireGuardNetworkExtension/PacketTunnelProvider.swift b/WireGuard/WireGuardNetworkExtension/PacketTunnelProvider.swift index 38182ee..f2fa269 100644 --- a/WireGuard/WireGuardNetworkExtension/PacketTunnelProvider.swift +++ b/WireGuard/WireGuardNetworkExtension/PacketTunnelProvider.swift @@ -159,8 +159,9 @@ class PacketTunnelProvider: NEPacketTunnelProvider { } } -// swiftlint:disable large_tuple identifier_name +// swiftlint:disable:next large_tuple identifier_name func withStringsAsGoStrings<R>(_ s1: String, _ s2: String? = nil, _ s3: String? = nil, _ s4: String? = nil, call: ((gostring_t, gostring_t, gostring_t, gostring_t)) -> R) -> R { + // swiftlint:disable:next large_tuple identifier_name func helper(_ p1: UnsafePointer<Int8>?, _ p2: UnsafePointer<Int8>?, _ p3: UnsafePointer<Int8>?, _ p4: UnsafePointer<Int8>?, _ call: ((gostring_t, gostring_t, gostring_t, gostring_t)) -> R) -> R { return call((gostring_t(p: p1, n: s1.utf8.count), gostring_t(p: p2, n: s2?.utf8.count ?? 0), gostring_t(p: p3, n: s3?.utf8.count ?? 0), gostring_t(p: p4, n: s4?.utf8.count ?? 0))) } |