Skip to content

Commit

Permalink
Remove now unneeded fts_open bitcast for Android
Browse files Browse the repository at this point in the history
  • Loading branch information
finagolfin committed Dec 12, 2024
1 parent 8bf4034 commit 6edf501
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Sources/NIOFileSystem/Internal/System Calls/Syscall.swift
Original file line number Diff line number Diff line change
Expand Up @@ -400,14 +400,7 @@ public enum Libc {
return valueOrErrno {
pathBytes.withUnsafeMutableBufferPointer { pointer in
// The array must be terminated with a nil.
#if os(Android)
libc_fts_open(
[pointer.baseAddress!, unsafeBitCast(0, to: UnsafeMutablePointer<CInterop.PlatformChar>.self)],
options.rawValue
)
#else
libc_fts_open([pointer.baseAddress, nil], options.rawValue)
#endif
}
}
}
Expand Down

0 comments on commit 6edf501

Please sign in to comment.