Skip to content

Commit

Permalink
Fix an accidental Unauthenticated/Authenticated flip
Browse files Browse the repository at this point in the history
  • Loading branch information
nelhage committed Sep 24, 2009
1 parent c4aefdd commit decee25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Network/Zephyr.hs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ sendNotice :: ZNotice -> IO ()
sendNotice note = withZNotice note $ \c_note -> do sendNotice note = withZNotice note $ \c_note -> do
withZephyr $ z_send_notice c_note cert >>= comErr withZephyr $ z_send_notice c_note cert >>= comErr
where cert = case z_auth note of where cert = case z_auth note of
Unauthenticated -> z_make_authentication Authenticated -> z_make_authentication
_ -> nullFunPtr _ -> nullFunPtr


-- | Receive a 'ZNotice' from the zephyr servers. Blocks until a -- | Receive a 'ZNotice' from the zephyr servers. Blocks until a
-- notice is available. -- notice is available.
Expand Down

0 comments on commit decee25

Please sign in to comment.