Try to fix more Dialyzer warnings

This commit is contained in:
Badlop 2015-03-27 15:55:57 +01:00
parent 9c96d30719
commit 176114d28e
3 changed files with 4 additions and 4 deletions

View File

@ -71,7 +71,7 @@
-callback get_vh_registered_users(binary(), opts()) -> [{binary(), binary()}]. -callback get_vh_registered_users(binary(), opts()) -> [{binary(), binary()}].
-callback get_vh_registered_users_number(binary()) -> number(). -callback get_vh_registered_users_number(binary()) -> number().
-callback get_vh_registered_users_number(binary(), opts()) -> number(). -callback get_vh_registered_users_number(binary(), opts()) -> number().
-callback get_password(binary(), binary()) -> false | binary(). -callback get_password(binary(), binary()) -> false | binary() | {binary(), binary(), binary(), integer()}.
-callback get_password_s(binary(), binary()) -> binary(). -callback get_password_s(binary(), binary()) -> binary().
start() -> start() ->
@ -267,7 +267,7 @@ get_vh_registered_users_number(Server, Opts) ->
end, end,
auth_modules(Server))). auth_modules(Server))).
-spec get_password(binary(), binary()) -> false | binary(). -spec get_password(binary(), binary()) -> false | binary() | {binary(), binary(), binary(), integer()}.
get_password(User, Server) -> get_password(User, Server) ->
lists:foldl(fun (M, false) -> lists:foldl(fun (M, false) ->

View File

@ -1737,7 +1737,7 @@ handle_info(system_shutdown, StateName, StateData) ->
ok ok
end, end,
{stop, normal, StateData}; {stop, normal, StateData};
handle_info({route_xmlstreamelement, El}, StateName, StateData) -> handle_info({route_xmlstreamelement, El}, _StateName, StateData) ->
{next_state, NStateName, NStateData, _Timeout} = {next_state, NStateName, NStateData, _Timeout} =
session_established({xmlstreamelement, El}, StateData), session_established({xmlstreamelement, El}, StateData),
fsm_next_state(NStateName, NStateData); fsm_next_state(NStateName, NStateData);

View File

@ -81,7 +81,7 @@ load_file(Lang, File) ->
io:setopts(Fd, [{encoding,latin1}]), io:setopts(Fd, [{encoding,latin1}]),
load_file_loop(Fd, 1, File, Lang), load_file_loop(Fd, 1, File, Lang),
file:close(Fd); file:close(Fd);
Error -> {error, Error} ->
ExitText = iolist_to_binary([File, ": ", ExitText = iolist_to_binary([File, ": ",
file:format_error(Error)]), file:format_error(Error)]),
?ERROR_MSG("Problem loading translation file ~n~s", ?ERROR_MSG("Problem loading translation file ~n~s",