Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:23
erlang
1006-inets-fix-dialyzer-warnings-for-inets-httd...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 1006-inets-fix-dialyzer-warnings-for-inets-httd-examples.patch of Package erlang
From 6fa207610ffd57816f1227a42d3a1711272cc28d Mon Sep 17 00:00:00 2001 From: Jakub Witczak <kuba@erlang.org> Date: Mon, 11 Jul 2022 19:27:11 +0200 Subject: [PATCH] inets: fix dialyzer warnings for inets/httd examples - fix dialyzer warnings in inets/httpd examples folder - fix related typespec in ssh_sftp module --- lib/inets/examples/httpd_load_test/hdlt_ctrl.erl | 2 +- lib/inets/examples/httpd_load_test/hdlt_slave.erl | 2 +- lib/ssh/src/ssh_sftp.erl | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/inets/examples/httpd_load_test/hdlt_ctrl.erl b/lib/inets/examples/httpd_load_test/hdlt_ctrl.erl index c3236545da..d2f1bfe068 100644 --- a/lib/inets/examples/httpd_load_test/hdlt_ctrl.erl +++ b/lib/inets/examples/httpd_load_test/hdlt_ctrl.erl @@ -27,7 +27,7 @@ %%---------------------------------------------------------------------- -module(hdlt_ctrl). - +-dialyzer({no_fail_call, proxy_loop/1}). -export([start/1, stop/0, help/0]). -export([init/1, proxy/7]). diff --git a/lib/inets/examples/httpd_load_test/hdlt_slave.erl b/lib/inets/examples/httpd_load_test/hdlt_slave.erl index 185c8b0e51..7835dabaf0 100644 --- a/lib/inets/examples/httpd_load_test/hdlt_slave.erl +++ b/lib/inets/examples/httpd_load_test/hdlt_slave.erl @@ -108,7 +108,7 @@ wait_for_slave(Parent, Host, Name, Node, Paths, Args, ?SET_LEVEL(DebugLevel), ?DEBUG("begin", []), Waiter = register_unique_name(0), - case mk_cmd(Host, Name, Paths, Args, Waiter, Prog) of + case (catch mk_cmd(Host, Name, Paths, Args, Waiter, Prog)) of {ok, Cmd} -> ?DEBUG("command generated: ~n~s", [Cmd]), case (catch ssh_slave_start(Host, Cmd)) of diff --git a/lib/ssh/src/ssh_sftp.erl b/lib/ssh/src/ssh_sftp.erl index 1558904928..8f70765b28 100644 --- a/lib/ssh/src/ssh_sftp.erl +++ b/lib/ssh/src/ssh_sftp.erl @@ -121,7 +121,7 @@ start_channel(Dest) -> %%% function clauses. -spec start_channel(ssh:open_socket(), - [ssh:client_options() | sftp_option()] + [ssh:client_option() | sftp_option()] ) -> {ok,pid(),ssh:connection_ref()} | {error,reason()}; @@ -131,7 +131,7 @@ start_channel(Dest) -> -> {ok,pid()} | {ok,pid(),ssh:connection_ref()} | {error,reason()}; (ssh:host(), - [ssh:client_options() | sftp_option()] + [ssh:client_option() | sftp_option()] ) -> {ok,pid(),ssh:connection_ref()} | {error,reason()} . -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor