aboutsummaryrefslogtreecommitdiffstats
path: root/lib/eldap/src
diff options
context:
space:
mode:
authorZandra <[email protected]>2015-10-02 15:55:33 +0200
committerZandra <[email protected]>2015-10-02 15:55:33 +0200
commit464bc901350fc3d150dbf00cbc5d58b18808c4e5 (patch)
tree783e6290bd95b3584bbaf1178a69953192f3ffcf /lib/eldap/src
parent5926738382a2ccb1cd10d310c261ecc285a69e44 (diff)
parent274311c9f8f2a056e57f9c89e83a4aa46a774c92 (diff)
downloadotp-464bc901350fc3d150dbf00cbc5d58b18808c4e5.tar.gz
otp-464bc901350fc3d150dbf00cbc5d58b18808c4e5.tar.bz2
otp-464bc901350fc3d150dbf00cbc5d58b18808c4e5.zip
Merge branch 'kostis/eldap-no-unmatched-returns'
* kostis/eldap-no-unmatched-returns: Eliminate dialyzer warnings for unmatched_returns
Diffstat (limited to 'lib/eldap/src')
-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.