Skip to content

Commit 47785ad

Browse files
authored
Remove now unneeded fts_open bitcast for Android (#3025)
I added this changed function call for Android in #2660 earlier this year, because of [an incorrect Bionic function signature as explained recently](#3009 (comment)), but now that it has been worked around through a new API note as mentioned there, this change is no longer needed. I simply did not notice this earlier because it still compiles and merely gives a warning, which removing this call now silences.
1 parent 742ae54 commit 47785ad

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Sources/NIOFileSystem/Internal/System Calls/Syscall.swift

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -400,14 +400,7 @@ public enum Libc {
400400
return valueOrErrno {
401401
pathBytes.withUnsafeMutableBufferPointer { pointer in
402402
// The array must be terminated with a nil.
403-
#if os(Android)
404-
libc_fts_open(
405-
[pointer.baseAddress!, unsafeBitCast(0, to: UnsafeMutablePointer<CInterop.PlatformChar>.self)],
406-
options.rawValue
407-
)
408-
#else
409403
libc_fts_open([pointer.baseAddress, nil], options.rawValue)
410-
#endif
411404
}
412405
}
413406
}

0 commit comments

Comments
 (0)