mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-26 17:38:45 +01:00
Try to fix more Dialyzer warnings
This commit is contained in:
parent
9c96d30719
commit
176114d28e
@ -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) ->
|
||||||
|
@ -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);
|
||||||
|
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user