diff options
Diffstat (limited to 'dht/Presence/LocalPeerCred.hs')
-rw-r--r-- | dht/Presence/LocalPeerCred.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dht/Presence/LocalPeerCred.hs b/dht/Presence/LocalPeerCred.hs index f68557e8..a7344434 100644 --- a/dht/Presence/LocalPeerCred.hs +++ b/dht/Presence/LocalPeerCred.hs | |||
@@ -62,6 +62,7 @@ getLocalPeerCred' (unmap6mapped4 -> addr@(SockAddrUnix _)) = | |||
62 | -- see also: Network.Socket.getPeerCred | 62 | -- see also: Network.Socket.getPeerCred |
63 | return Nothing | 63 | return Nothing |
64 | 64 | ||
65 | {- // Removed due to no call-sites | ||
65 | getLocalPeerCred :: SocketLike sock => sock -> IO (Maybe UserID) | 66 | getLocalPeerCred :: SocketLike sock => sock -> IO (Maybe UserID) |
66 | getLocalPeerCred sock = do | 67 | getLocalPeerCred sock = do |
67 | addr <- getPeerName sock | 68 | addr <- getPeerName sock |
@@ -72,6 +73,7 @@ getLocalPeerCred sock = do | |||
72 | where sndOf3 (pid,uid,gid) = uid | 73 | where sndOf3 (pid,uid,gid) = uid |
73 | where | 74 | where |
74 | validate uid = Just uid -- TODO | 75 | validate uid = Just uid -- TODO |
76 | -} | ||
75 | 77 | ||
76 | from16 :: Word16 -> Int | 78 | from16 :: Word16 -> Int |
77 | from16 = fromEnum | 79 | from16 = fromEnum |