File 1186-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
-- 
2.35.3

openSUSE Build Service is sponsored by