selftests/bpf: use proper type when passing prog_type
authorStanislav Fomichev <sdf@google.com>
Mon, 10 Dec 2018 23:25:04 +0000 (15:25 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 11 Dec 2018 00:37:10 +0000 (01:37 +0100)
commitaca1a80ebe3e4d49adaf6516c61a6786b1ee7dad
tree4dc038f5af8916a267ab904fbf3655044add62d5
parentc2a20a2731df11f9b7b7030f7ac3fc222c9ce39d
selftests/bpf: use proper type when passing prog_type

Use bpf_prog_type instead of bpf_map_type when passing prog_type.

-Wenum-conversion might be unhappy about it:
error: implicit conversion from enumeration type
'enum bpf_map_type' to different enumeration type
'enum bpf_prog_type'

Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/test_verifier.c