Skip to content

Commit

Permalink
better naming
Browse files Browse the repository at this point in the history
  • Loading branch information
kazu-yamamoto committed Dec 4, 2024
1 parent 4d6eeb1 commit 7800d13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Network/Socket/Shutdown.hs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ recvEOF :: Socket -> Int -> Ptr Word8 -> IO ()
recvEOF s tmout0 buf = do
mevmgr <- Ev.getSystemEventManager
case mevmgr of
Nothing -> recvEOFloop s tmout0 buf
Nothing -> recvEOFtimeout s tmout0 buf
Just _ -> recvEOFevent s tmout0 buf
#else
recvEOF = recvEOFloop

Check failure on line 80 in Network/Socket/Shutdown.hs

View workflow job for this annotation

GitHub Actions / build (windows-latest, 9.4)

Variable not in scope:

Check failure on line 80 in Network/Socket/Shutdown.hs

View workflow job for this annotation

GitHub Actions / build (windows-latest, 9.6)

Variable not in scope:

Check failure on line 80 in Network/Socket/Shutdown.hs

View workflow job for this annotation

GitHub Actions / build (windows-latest, 9.8)

Variable not in scope:
Expand All @@ -85,8 +85,8 @@ recvEOF = recvEOFloop
bufSize :: Int
bufSize = 1024

recvEOFloop :: Socket -> Int -> Ptr Word8 -> IO ()
recvEOFloop s tmout0 buf = void $ timeout tmout0 $ recvBuf s buf bufSize
recvEOFtimeout :: Socket -> Int -> Ptr Word8 -> IO ()
recvEOFtimeout s tmout0 buf = void $ timeout tmout0 $ recvBuf s buf bufSize

#if !defined(mingw32_HOST_OS)
data Wait = MoreData | TimeoutTripped
Expand Down

0 comments on commit 7800d13

Please sign in to comment.