25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Replace TYPE/1 with is_TYPE/1 (EJAB-922)

SVN Revision: 2316
This commit is contained in:
Badlop 2009-06-16 18:27:27 +00:00
parent c19cc61c48
commit 3e3d01063d

View File

@ -4,7 +4,7 @@
%%% Purpose : Implements XMPP over BOSH (XEP-0205) (formerly known as %%% Purpose : Implements XMPP over BOSH (XEP-0205) (formerly known as
%%% HTTP Binding) %%% HTTP Binding)
%%% Created : 21 Sep 2005 by Stefan Strigler <steve@zeank.in-berlin.de> %%% Created : 21 Sep 2005 by Stefan Strigler <steve@zeank.in-berlin.de>
%%% Id : $Id: ejabberd_http_bind.erl 950 2009-05-04 01:23:55Z mremond $ %%% Id : $Id: ejabberd_http_bind.erl 952 2009-05-06 17:29:39Z badlop $
%%%---------------------------------------------------------------------- %%%----------------------------------------------------------------------
-module(ejabberd_http_bind). -module(ejabberd_http_bind).
@ -1070,7 +1070,7 @@ cancel_timer(Timer) ->
ok ok
end. end.
hex(Bin) when binary(Bin) -> hex(binary_to_list(Bin)); hex(Bin) when is_binary(Bin) -> hex(binary_to_list(Bin));
hex([]) -> ""; hex([]) -> "";
hex([H|T]) -> hex([H|T]) ->
[A,B] = if [A,B] = if