Home
last modified time | relevance | path

Searched hist:"5 f17f8e315ad77c7ba45afe169b4598efd5d5bc3" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/tools/testing/selftests/net/mptcp/
H A Dmptcp_sockopt.shdiff 5f17f8e315ad77c7ba45afe169b4598efd5d5bc3 Wed Nov 30 08:06:27 CST 2022 Matthieu Baerts <matthieu.baerts@tessares.net> selftests: mptcp: declare var as local

Just to avoid classical Bash pitfall where variables are accidentally
overridden by other functions because the proper scope has not been
defined.

That's also what is done in other MPTCP selftests scripts where all non
local variables are defined at the beginning of the script and the
others are defined with the "local" keyword.

Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>