aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/src/ssh_cli.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_cli.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_cli.erl')
-rw-r--r--lib/ssh/src/ssh_cli.erl6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/ssh/src/ssh_cli.erl b/lib/ssh/src/ssh_cli.erl
index 2764ea2e43..e3b6ffa125 100644
--- a/lib/ssh/src/ssh_cli.erl
+++ b/lib/ssh/src/ssh_cli.erl
@@ -327,7 +327,7 @@ window_change(Tty, OldTty, Buf)
{[], Buf};
window_change(Tty, OldTty, {Buf, BufTail, Col}) ->
M1 = move_cursor(Col, 0, OldTty),
- N = max(Tty#ssh_pty.width - OldTty#ssh_pty.width, 0) * 2,
+ N = erlang:max(Tty#ssh_pty.width - OldTty#ssh_pty.width, 0) * 2,
S = lists:reverse(Buf, [BufTail | lists:duplicate(N, $ )]),
M2 = move_cursor(length(Buf) + length(BufTail) + N, Col, Tty),
{[M1, S | M2], {Buf, BufTail, Col}}.
@@ -398,10 +398,6 @@ nthtail(0, A) -> A;
nthtail(N, [_ | A]) when N > 0 -> nthtail(N-1, A);
nthtail(_, _) -> [].
-%%% utils
-max(A, B) when A > B -> A;
-max(_A, B) -> B.
-
ifelse(Cond, A, B) ->
case Cond of
true -> A;