selftests/bpf: Remove casting by introduce local variable
authorBjörn Töpel <bjorn.topel@intel.com>
Fri, 22 Jan 2021 15:47:19 +0000 (16:47 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 25 Jan 2021 23:05:01 +0000 (00:05 +0100)
commit0b50bd48cfe744def605cafe991ca3db60d326d8
tree5545d693ca9b476a3c258729fb04c3d1f682c683
parent8a9cba7ea858da134d18aa9ea09e1e6606d8ade6
selftests/bpf: Remove casting by introduce local variable

Let us use a local variable in nsswitchthread(), so we can remove a
lot of casting for better readability.

Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20210122154725.22140-7-bjorn.topel@gmail.com
tools/testing/selftests/bpf/xdpxceiver.c