Skip to content

Commit

Permalink
auth: Fix types and specs
Browse files Browse the repository at this point in the history
  • Loading branch information
kostis authored and bjorng committed Jun 9, 2010
1 parent cf0385b commit 1c51135
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/kernel/src/auth.erl
Expand Up @@ -50,6 +50,8 @@
%% Exported functions
%%----------------------------------------------------------------------

-spec start_link() -> {'ok',pid()} | {'error', term()} | 'ignore'.

start_link() ->
gen_server:start_link({local, auth}, auth, [], []).

Expand Down Expand Up @@ -134,7 +136,9 @@ init([]) ->
%% The net kernel will let all message to the auth server
%% through as is

-type calls() :: 'echo' | 'sync_cookie' | {'set_cookie', node(), term()}.
-type calls() :: 'echo' | 'sync_cookie'
| {'get_cookie', node()}
| {'set_cookie', node(), term()}.

-spec handle_call(calls(), {pid(), term()}, state()) ->
{'reply', 'hello' | 'true' | 'nocookie' | cookie(), state()}.
Expand Down

0 comments on commit 1c51135

Please sign in to comment.