Skip to content

Commit

Permalink
Fix compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
erikd committed Apr 3, 2019
1 parent c28661b commit 7a824cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion http-proxy.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ library
, http-conduit >= 2.1.11 && < 2.2
, http-types >= 0.8
, mtl >= 2.1
, network >= 2.6
, network == 2.7.*
, resourcet >= 1.1
-- Not used directly but necessary to enforce < 0.2
, streaming-commons >= 0.1 && < 0.2
Expand Down
5 changes: 3 additions & 2 deletions test/Test/Util.hs
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,9 @@ catchAny action onE =
openLocalhostListenSocket :: IO (Socket, Port)
openLocalhostListenSocket = do
sock <- socket AF_INET Stream defaultProtocol
addr <- inet_addr "127.0.0.1"
bind sock (SockAddrInet aNY_PORT addr)
addr:_ <- getAddrInfo Nothing (Just "127.0.0.1") Nothing
bind sock (addrAddress addr)
listen sock 10
port <- fromIntegral <$> socketPort sock
return (sock, port)

0 comments on commit 7a824cb

Please sign in to comment.