aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/src/ssh_sftpd.erl
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2018-04-25 16:03:50 +0200
committerHans Nilsson <[email protected]>2018-04-25 16:03:50 +0200
commit511091f08c8ace2a2b964d7ff123e891ad4deeef (patch)
treef3d6eb31615b608fc174c6d6312938976b3445ac /lib/ssh/src/ssh_sftpd.erl
parent960467ead200635cb935dfd3aa5a5abe38299ca6 (diff)
parentb9c0b5c15f71dc1384c8e6b98fb2fae1987b14b5 (diff)
downloadotp-511091f08c8ace2a2b964d7ff123e891ad4deeef.tar.gz
otp-511091f08c8ace2a2b964d7ff123e891ad4deeef.tar.bz2
otp-511091f08c8ace2a2b964d7ff123e891ad4deeef.zip
Merge branch 'hans/ssh/type_changes/OTP-15002'
* hans/ssh/type_changes/OTP-15002: ssh: Changes suggested by dialyzer ssh: New -spec and -type
Diffstat (limited to 'lib/ssh/src/ssh_sftpd.erl')
-rw-r--r--lib/ssh/src/ssh_sftpd.erl16
1 files changed, 1 insertions, 15 deletions
diff --git a/lib/ssh/src/ssh_sftpd.erl b/lib/ssh/src/ssh_sftpd.erl
index 945e9f457b..fda9a38a43 100644
--- a/lib/ssh/src/ssh_sftpd.erl
+++ b/lib/ssh/src/ssh_sftpd.erl
@@ -58,21 +58,7 @@
%%====================================================================
%% API
%%====================================================================
--spec init(Args :: term()) ->
- {ok, State :: term()} | {ok, State :: term(), timeout() | hibernate} |
- {stop, Reason :: term()} | ignore.
-
--spec terminate(Reason :: (normal | shutdown | {shutdown, term()} |
- term()),
- State :: term()) ->
- term().
-
--spec handle_msg(Msg ::term(), State :: term()) ->
- {ok, State::term()} | {stop, ChannelId::integer(), State::term()}.
--spec handle_ssh_msg({ssh_cm, ConnectionRef::term(), SshMsg::term()},
- State::term()) -> {ok, State::term()} |
- {stop, ChannelId::integer(),
- State::term()}.
+-spec subsystem_spec(list()) -> subsystem_spec().
subsystem_spec(Options) ->
{"sftp", {?MODULE, Options}}.