From 690c56ca6d77db0e1f01e1390fd02352e701f563 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20K=C3=B6hler?= Date: Tue, 9 Nov 2010 14:11:38 +0100 Subject: [PATCH] Fix R12B5 compatibility in ejabberd_http_bind.erl (EJAB-1343) erlang:max/2 and :min/2 are new functions --- src/web/ejabberd_http_bind.erl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/web/ejabberd_http_bind.erl b/src/web/ejabberd_http_bind.erl index 52e38d76d..ffbe1fe13 100644 --- a/src/web/ejabberd_http_bind.erl +++ b/src/web/ejabberd_http_bind.erl @@ -288,9 +288,7 @@ handle_session_start(Pid, XmppDomain, Sid, Rid, Attrs, (CPdelay =< ?PROCESS_DELAY_MAX) -> CPdelay; {CPdelay, _} -> - erlang:max( - erlang:min(CPdelay,?PROCESS_DELAY_MAX), - ?PROCESS_DELAY_MIN) + lists:max([lists:min([CPdelay, ?PROCESS_DELAY_MAX]), ?PROCESS_DELAY_MIN]) end, Version = case catch list_to_float(