From 3e55cb62c9053895412b1cf2a65d54ef90eda34c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 25 May 2011 23:02:40 +0200 Subject: Refresh the type specifications. Following discussions on #erlounge. Also fixes compilation in R14B03 and fixes a few underspecs dialyzer warnings. --- src/cowboy_listener_sup.erl | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/cowboy_listener_sup.erl') diff --git a/src/cowboy_listener_sup.erl b/src/cowboy_listener_sup.erl index e77c237..248d7df 100644 --- a/src/cowboy_listener_sup.erl +++ b/src/cowboy_listener_sup.erl @@ -20,9 +20,8 @@ %% API. --spec start_link(NbAcceptors::non_neg_integer(), Transport::module(), - TransOpts::term(), Protocol::module(), ProtoOpts::term()) - -> {ok, Pid::pid()}. +-spec start_link(non_neg_integer(), module(), any(), module(), any()) + -> {ok, pid()}. start_link(NbAcceptors, Transport, TransOpts, Protocol, ProtoOpts) -> {ok, SupPid} = supervisor:start_link(?MODULE, []), {ok, ReqsPid} = supervisor:start_child(SupPid, @@ -36,7 +35,6 @@ start_link(NbAcceptors, Transport, TransOpts, Protocol, ProtoOpts) -> %% supervisor. -%% @todo These specs should be improved. --spec init([]) -> term(). +-spec init([]) -> {ok, {{one_for_one, 0, 1}, []}}. init([]) -> {ok, {{one_for_one, 0, 1}, []}}. -- cgit v1.2.3