Fix some dialyzer issues

This commit is contained in:
Carlos Martín Nieto
2013-08-09 23:30:22 +02:00
parent bb35fce5cc
commit 3a7d37bec8
3 changed files with 7 additions and 4 deletions

View File

@@ -11,7 +11,7 @@
-behaviour(gen_server).
%% API
-export([start_link/1, exists/2, write/3]).
-export([start_link/1, exists/2, write/3, stop/1]).
%% gen_server callbacks
-export([init/1, handle_call/3, handle_cast/2, handle_info/2,
@@ -25,6 +25,9 @@
%%% API
%%%===================================================================
stop(Pid) ->
gen_server:call(Pid, stop).
%% @doc
%% Starts the server
-spec start_link(term()) -> {ok, pid()} | ignore | {error, term()}.

View File

@@ -4,7 +4,7 @@
-export([new/2, new/3]).
-spec new(iolist(), iolist()) -> geef_signature() | {error, term()}.
-spec new(iolist(), iolist()) -> {ok, geef_signature()} | {error, term()}.
new(Name0, Email0) ->
case geef_nif:signature_new(Name0, Email0) of
{ok, Name, Email, Time0, Offset} ->
@@ -14,7 +14,7 @@ new(Name0, Email0) ->
Err
end.
-spec new(iolist(), iolist(), geef_time()) -> geef_signature() | {error, term()}.
-spec new(iolist(), iolist(), geef_time()) -> {ok, geef_signature()} | {error, term()}.
new(Name0, Email0, Time) ->
case geef_nif:signature_new(Name0, Email0, 0) of
{ok, Name, Email} ->