aboutsummaryrefslogtreecommitdiffstats
path: root/lib/eldap
diff options
context:
space:
mode:
authorKostis Sagonas <[email protected]>2015-06-14 15:40:13 +0200
committerKostis Sagonas <[email protected]>2015-06-14 15:40:13 +0200
commit274311c9f8f2a056e57f9c89e83a4aa46a774c92 (patch)
tree844c906925702e110b1ad56a2c8ad02ace7e61f5 /lib/eldap
parent831aab8a46f9f659bc422fbbef4971e9e68b201f (diff)
downloadotp-274311c9f8f2a056e57f9c89e83a4aa46a774c92.tar.gz
otp-274311c9f8f2a056e57f9c89e83a4aa46a774c92.tar.bz2
otp-274311c9f8f2a056e57f9c89e83a4aa46a774c92.zip
Eliminate dialyzer warnings for unmatched_returns
While at it, do a minor cleanup using is_boolean/1
Diffstat (limited to 'lib/eldap')
-rw-r--r--lib/eldap/src/eldap.erl9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/eldap/src/eldap.erl b/lib/eldap/src/eldap.erl
index ae47c815c9..df87ddde08 100644
--- a/lib/eldap/src/eldap.erl
+++ b/lib/eldap/src/eldap.erl
@@ -242,7 +242,7 @@ modify_dn(Handle, Entry, NewRDN, DelOldRDN, NewSup)
%%% Sanity checks !
-bool_p(Bool) when Bool==true;Bool==false -> Bool.
+bool_p(Bool) when is_boolean(Bool) -> Bool.
optional([]) -> asn1_NOVALUE;
optional(Value) -> Value.
@@ -1022,10 +1022,13 @@ log(_, _, _, _) ->
%%% Misc. routines
%%% --------------------------------------------------------------------
-send(To,Msg) -> To ! {self(),Msg}.
+send(To,Msg) ->
+ To ! {self(), Msg},
+ ok.
+
recv(From) ->
receive
- {From,Msg} -> Msg;
+ {From, Msg} -> Msg;
{'EXIT', From, Reason} ->
{error, {internal_error, Reason}}
end.