Skip to content

Commit 94dc57f

Browse files
committed
Fix fts_open now that apinotes are applied
1 parent 280199c commit 94dc57f

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

Sources/Foundation/FileManager+POSIX.swift

+1-8
Original file line numberDiff line numberDiff line change
@@ -355,14 +355,7 @@ extension FileManager {
355355
defer { ps.deallocate() }
356356
ps.initialize(to: UnsafeMutablePointer(mutating: fsRep))
357357
ps.advanced(by: 1).initialize(to: nil)
358-
return ps.withMemoryRebound(to: UnsafeMutablePointer<CChar>.self, capacity: 2) { rebound_ps in
359-
#if canImport(Android)
360-
let arg = rebound_ps
361-
#else
362-
let arg = ps
363-
#endif
364-
return fts_open(arg, FTS_PHYSICAL | FTS_XDEV | FTS_NOCHDIR | FTS_NOSTAT, nil)
365-
}
358+
return fts_open(ps, FTS_PHYSICAL | FTS_XDEV | FTS_NOCHDIR | FTS_NOSTAT, nil)
366359
}
367360
if _stream == nil {
368361
throw _NSErrorWithErrno(errno, reading: true, url: url)

0 commit comments

Comments
 (0)