diff options
author | Ingela Anderton Andin <[email protected]> | 2013-11-25 10:11:42 +0100 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2013-11-25 10:11:42 +0100 |
commit | 9fa7a3b3514bee6a7136aeaa80ea4c07f7d8b465 (patch) | |
tree | a9f40a478b4656ecf2ecad386f3355e24dd678bf /lib/ssh/src/ssh_no_io.erl | |
parent | 90c8450bb691a7b57ce326fddd1f44ef01db390f (diff) | |
download | otp-9fa7a3b3514bee6a7136aeaa80ea4c07f7d8b465.tar.gz otp-9fa7a3b3514bee6a7136aeaa80ea4c07f7d8b465.tar.bz2 otp-9fa7a3b3514bee6a7136aeaa80ea4c07f7d8b465.zip |
ssh: Correct arity in ssh_no_io.erl
Also remove import statement as it makes code less intuitive
Diffstat (limited to 'lib/ssh/src/ssh_no_io.erl')
-rw-r--r-- | lib/ssh/src/ssh_no_io.erl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/ssh/src/ssh_no_io.erl b/lib/ssh/src/ssh_no_io.erl index 9f83506cdd..825a0d4af5 100644 --- a/lib/ssh/src/ssh_no_io.erl +++ b/lib/ssh/src/ssh_no_io.erl @@ -24,27 +24,27 @@ -module(ssh_no_io). -include("ssh_transport.hrl"). --export([yes_no/1, read_password/1, read_line/1, format/2]). +-export([yes_no/2, read_password/2, read_line/2, format/2]). -yes_no(_Prompt) -> +yes_no(_, _) -> throw({{no_io_allowed, yes_no}, #ssh_msg_disconnect{code = ?SSH_DISCONNECT_SERVICE_NOT_AVAILABLE, description = "User interaction is not allowed", language = "en"}}). -read_password(_Prompt) -> +read_password(_, _) -> throw({{no_io_allowed, read_password}, #ssh_msg_disconnect{code = ?SSH_DISCONNECT_SERVICE_NOT_AVAILABLE, description = "User interaction is not allowed", language = "en"}}). -read_line(_Prompt) -> +read_line(_, _) -> throw({{no_io_allowed, read_line}, #ssh_msg_disconnect{code = ?SSH_DISCONNECT_SERVICE_NOT_AVAILABLE, description = "User interaction is not allowed", language = "en"}} ). -format(_Fmt, _Args) -> +format(_, _) -> throw({{no_io_allowed, format}, #ssh_msg_disconnect{code = ?SSH_DISCONNECT_SERVICE_NOT_AVAILABLE, description = "User interaction is not allowed", |