From: Matthias Kruk Date: Sat, 8 Oct 2022 06:26:21 +0000 (+0900) Subject: utils/ipc-sshtunnel: Remove unused argument `endpoint' X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;h=fe7cd37d019817577b9c5d6b31eb45657ad876f9;p=toolbox utils/ipc-sshtunnel: Remove unused argument `endpoint' The local_to_remote() and local_to_remote() functions in ipc-sshtunnel take a parameter `endpoint', which is never used. This commit removes the unused parameter. --- diff --git a/utils/ipc-sshtunnel.sh b/utils/ipc-sshtunnel.sh index 1b6294a..3fcbf60 100755 --- a/utils/ipc-sshtunnel.sh +++ b/utils/ipc-sshtunnel.sh @@ -44,10 +44,9 @@ _array_add() { local_to_remote() { local remote="$1" - local endpoint="$2" - local -n ref_topics="$3" - local -n ref_tap_hooks="$4" - local -n ref_inject_hooks="$5" + local -n ref_topics="$2" + local -n ref_tap_hooks="$3" + local -n ref_inject_hooks="$4" local topic local hook @@ -73,10 +72,9 @@ local_to_remote() { remote_to_local() { local remote="$1" - local endpoint="$2" - local -n ref_topics="$3" - local -n ref_tap_hooks="$4" - local -n ref_inject_hooks="$5" + local -n ref_topics="$2" + local -n ref_tap_hooks="$3" + local -n ref_inject_hooks="$4" local topic local hook @@ -116,7 +114,7 @@ spawn_tunnel() { local -i tunnel - if tunnel=$("$tunnel_func" "$remote" "$endpoint" "$ref_topics" "$ref_tap_hooks" "$ref_inject_hooks"); then + if tunnel=$("$tunnel_func" "$remote" "$ref_topics" "$ref_tap_hooks" "$ref_inject_hooks"); then while inst_running && process_is_running "$tunnel"; do sleep 5 done