Skip to content

Commit 113e568

Browse files
mmhathasufell
authored andcommitted
Removed superfluous d_name, d_type
1 parent befa232 commit 113e568

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

System/Posix/Directory/Common.hsc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ foreign import ccall unsafe "HsUnix.h close"
175175
foreign import capi unsafe "dirent.h fdopendir"
176176
c_fdopendir :: CInt -> IO (Ptr CDir)
177177

178+
178179
-- | @readDirStreamWith f dp@ calls @readdir@ to obtain the next directory entry
179180
-- (@struct dirent@) for the open directory stream @dp@. If an entry is read,
180181
-- it passes the pointer to that structure to the provided function @f@ for
@@ -226,11 +227,6 @@ foreign import ccall unsafe "__hscore_readdir"
226227
foreign import ccall unsafe "__hscore_free_dirent"
227228
c_freeDirEnt :: Ptr CDirent -> IO ()
228229

229-
foreign import ccall unsafe "__hscore_d_name"
230-
d_name :: Ptr CDirent -> IO CString
231-
232-
foreign import ccall unsafe "__hscore_d_type"
233-
d_type :: Ptr CDirent -> IO CChar
234230

235231
-- | @rewindDirStream dp@ calls @rewinddir@ to reposition
236232
-- the directory stream @dp@ at the beginning of the directory.

0 commit comments

Comments
 (0)