diff options
author | Joey Hess <joey@kitenet.net> | 2011-03-20 18:06:06 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-03-20 18:06:06 -0400 |
commit | 08d1c13628c1f927be58f8454058f458cca22817 (patch) | |
tree | a012b898376655039178c6eae98f5f7a62c863d1 /Touch.hsc | |
parent | 464b60ea0d48eed7fae071e8c8db35a19903a880 (diff) |
fix typo
Diffstat (limited to 'Touch.hsc')
-rw-r--r-- | Touch.hsc | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -81,7 +81,7 @@ touchBoth file atime mtime follow = - TODO: test if lutimes is available. May have to do it in configure. - TODO: TimeSpec uses a CTime, while tv_sec is a CLong. It is implementation - dependent whether these are the same; need to find a cast that works. - - (The cast below fails.. without the cast it works on linux i386, but + - (Without the cast it works on linux i386, but - maybe not elsewhere.) -} @@ -92,7 +92,7 @@ instance Storable TimeSpec where sec <- #{peek struct timeval, tv_sec} ptr return $ TimeSpec sec poke ptr (TimeSpec sec) = do - #{poke struct timeval, tv_sec} ptr (sec :: CLong) + #{poke struct timeval, tv_sec} ptr sec #{poke struct timeval, tv_usec} ptr (0 :: CLong) foreign import ccall "utimes" @@ -114,7 +114,7 @@ touchBoth file atime mtime follow = else c_utimes #else -warning "utimensat and lutimes not available; building without symlink timestamp preservation support" +#warning "utimensat and lutimes not available; building without symlink timestamp preservation support" touchBoth _ _ _ _ = return () #endif #endif |