Skip to content

Commit

Permalink
mark the import of statvfs as safe (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
redneb committed Jan 5, 2015
1 parent bd23189 commit 2146e2d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
v0.1.0.1

* Mark the import of statvfs as safe.
2 changes: 1 addition & 1 deletion System/DiskSpace.hsc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import Foreign.C

#include <sys/statvfs.h>

foreign import ccall unsafe statvfs :: CString -> Ptr a -> IO CInt
foreign import ccall safe statvfs :: CString -> Ptr a -> IO CInt

type FsBlkCnt = #type fsblkcnt_t

Expand Down
2 changes: 1 addition & 1 deletion disk-free-space.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: disk-free-space
version: 0.1.0.0
version: 0.1.0.1
synopsis: Retrieve information about disk space usage
description:
A cross-platform library retrieve information about disk space usage.
Expand Down

0 comments on commit 2146e2d

Please sign in to comment.