diff options
author | Ingela Anderton Andin <[email protected]> | 2011-02-11 12:06:49 +0100 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2011-02-11 12:06:49 +0100 |
commit | 55203980361ea0e39ac40569583c598c147ad9b2 (patch) | |
tree | d69f4575cc4fb34efcc13e50e55a7b0409a4bcee /lib/ssl/src/inet_ssl_dist.erl | |
parent | c694c0be5656bda37fafdef858a82c76bdcf8f14 (diff) | |
download | otp-55203980361ea0e39ac40569583c598c147ad9b2.tar.gz otp-55203980361ea0e39ac40569583c598c147ad9b2.tar.bz2 otp-55203980361ea0e39ac40569583c598c147ad9b2.zip |
Added missing return value in dialyzer specs (ssl.erl)
Suppressed dialyzer warnings with spec if possible to
minimize clutter from this file belonging to old ssl.
Diffstat (limited to 'lib/ssl/src/inet_ssl_dist.erl')
-rw-r--r-- | lib/ssl/src/inet_ssl_dist.erl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/ssl/src/inet_ssl_dist.erl b/lib/ssl/src/inet_ssl_dist.erl index f62aefd35a..b10aa76246 100644 --- a/lib/ssl/src/inet_ssl_dist.erl +++ b/lib/ssl/src/inet_ssl_dist.erl @@ -135,6 +135,9 @@ accept_connection(AcceptPid, Socket, MyNode, Allowed, SetupTime) -> [self(), AcceptPid, Socket, MyNode, Allowed, SetupTime]). +%% Suppress dialyzer warning, we do not really care about old ssl code +%% as we intend to remove it. +-spec(do_accept/6 :: (_,_,_,_,_,_) -> no_return()). do_accept(Kernel, AcceptPid, Socket, MyNode, Allowed, SetupTime) -> process_flag(priority, max), receive @@ -204,6 +207,9 @@ setup(Node, Type, MyNode, LongOrShortNames,SetupTime) -> LongOrShortNames, SetupTime]). +%% Suppress dialyzer warning, we do not really care about old ssl code +%% as we intend to remove it. +-spec(do_setup/6 :: (_,_,_,_,_,_) -> no_return()). do_setup(Kernel, Node, Type, MyNode, LongOrShortNames,SetupTime) -> process_flag(priority, max), ?trace("~p~n",[{inet_ssl_dist,self(),setup,Node}]), |