diff options
author | Badlop <badlop@process-one.net> | 2007-12-07 02:15:04 +0300 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2007-12-07 02:15:04 +0300 |
commit | 6342c258a7a2ba9633e7c63b356a35d80b5c1fff (patch) | |
tree | 0f05654a8263c4ffcf87a6206f730bc623cbe96a /src/ejabberd_hooks.erl | |
parent | d625fc80fc94feb24484050972509242f56cc67b (diff) |
* src/cyrsasl.erl: Fix compilation warnings: Part 1 (EJAB-290)
* src/ejabberd_auth_odbc.erl: Likewise
* src/ejabberd_config.erl: Likewise
* src/ejabberd_hooks.erl: Likewise
* src/ejabberd_s2s_out.erl: Likewise
* src/ejabberd_sm.erl: Likewise
* src/idna.erl: Likewise
* src/jd2ejd.erl: Likewise
SVN Revision: 1045
Diffstat (limited to 'src/ejabberd_hooks.erl')
-rw-r--r-- | src/ejabberd_hooks.erl | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ejabberd_hooks.erl b/src/ejabberd_hooks.erl index 1888dabd3..9916876be 100644 --- a/src/ejabberd_hooks.erl +++ b/src/ejabberd_hooks.erl @@ -98,7 +98,7 @@ init([]) -> %% {stop, Reason, Reply, State} | (terminate/2 is called) %% {stop, Reason, State} (terminate/2 is called) %%---------------------------------------------------------------------- -handle_call({add, Hook, Host, Module, Function, Seq}, From, State) -> +handle_call({add, Hook, Host, Module, Function, Seq}, _From, State) -> Reply = case ets:lookup(hooks, {Hook, Host}) of [{_, Ls}] -> El = {Seq, Module, Function}, @@ -116,7 +116,7 @@ handle_call({add, Hook, Host, Module, Function, Seq}, From, State) -> ok end, {reply, Reply, State}; -handle_call({delete, Hook, Host, Module, Function, Seq}, From, State) -> +handle_call({delete, Hook, Host, Module, Function, Seq}, _From, State) -> Reply = case ets:lookup(hooks, {Hook, Host}) of [{_, Ls}] -> NewLs = lists:delete({Seq, Module, Function}, Ls), @@ -126,7 +126,7 @@ handle_call({delete, Hook, Host, Module, Function, Seq}, From, State) -> ok end, {reply, Reply, State}; -handle_call(Request, From, State) -> +handle_call(_Request, _From, State) -> Reply = ok, {reply, Reply, State}. @@ -136,7 +136,7 @@ handle_call(Request, From, State) -> %% {noreply, State, Timeout} | %% {stop, Reason, State} (terminate/2 is called) %%---------------------------------------------------------------------- -handle_cast(Msg, State) -> +handle_cast(_Msg, State) -> {noreply, State}. %%---------------------------------------------------------------------- @@ -145,7 +145,7 @@ handle_cast(Msg, State) -> %% {noreply, State, Timeout} | %% {stop, Reason, State} (terminate/2 is called) %%---------------------------------------------------------------------- -handle_info(Info, State) -> +handle_info(_Info, State) -> {noreply, State}. %%---------------------------------------------------------------------- @@ -153,7 +153,7 @@ handle_info(Info, State) -> %% Purpose: Shutdown the server %% Returns: any (ignored by gen_server) %%---------------------------------------------------------------------- -terminate(Reason, State) -> +terminate(_Reason, _State) -> ok. @@ -164,7 +164,7 @@ code_change(_OldVsn, State, _Extra) -> %%% Internal functions %%%---------------------------------------------------------------------- -run1([], Hook, Args) -> +run1([], _Hook, _Args) -> ok; run1([{_Seq, Module, Function} | Ls], Hook, Args) -> case catch apply(Module, Function, Args) of @@ -179,7 +179,7 @@ run1([{_Seq, Module, Function} | Ls], Hook, Args) -> end. -run_fold1([], Hook, Val, Args) -> +run_fold1([], _Hook, Val, _Args) -> Val; run_fold1([{_Seq, Module, Function} | Ls], Hook, Val, Args) -> case catch apply(Module, Function, [Val | Args]) of |