aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/src/ssh_connection_handler.erl
diff options
context:
space:
mode:
authorNiclas Eklund <[email protected]>2010-06-02 12:53:05 +0000
committerErlang/OTP <[email protected]>2010-06-02 12:53:05 +0000
commitea0419df3393f0fe304d57dac8723e1d1e4b4344 (patch)
treecc6cadc39cdc2a9f827d61d7652a7beda115a5fc /lib/ssh/src/ssh_connection_handler.erl
parentb0fac292636d789bcecc3aea3fc3eb403aef8357 (diff)
downloadotp-ea0419df3393f0fe304d57dac8723e1d1e4b4344.tar.gz
otp-ea0419df3393f0fe304d57dac8723e1d1e4b4344.tar.bz2
otp-ea0419df3393f0fe304d57dac8723e1d1e4b4344.zip
Fixing compiler warnings regarding max/2
Diffstat (limited to 'lib/ssh/src/ssh_connection_handler.erl')
-rw-r--r--lib/ssh/src/ssh_connection_handler.erl7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/ssh/src/ssh_connection_handler.erl b/lib/ssh/src/ssh_connection_handler.erl
index 822ef8f8f9..d46002c494 100644
--- a/lib/ssh/src/ssh_connection_handler.erl
+++ b/lib/ssh/src/ssh_connection_handler.erl
@@ -527,7 +527,7 @@ handle_info({Protocol, Socket, Data}, Statename,
%% Implementations SHOULD decrypt the length after receiving the
%% first 8 (or cipher block size, whichever is larger) bytes of a
%% packet. (RFC 4253: Section 6 - Binary Packet Protocol)
- case size(EncData0) + size(Data) >= max(8, BlockSize) of
+ case size(EncData0) + size(Data) >= erlang:max(8, BlockSize) of
true ->
{Ssh, SshPacketLen, DecData, EncData} =
@@ -758,11 +758,6 @@ after_new_keys(#state{renegotiate = false,
ssh_params = #ssh{role = server}} = State) ->
{userauth, State}.
-max(N, M) when N > M ->
- N;
-max(_, M) ->
- M.
-
handle_ssh_packet_data(RemainingSshPacketLen, DecData, EncData, StateName,
State) ->
EncSize = size(EncData),