Skip to content

Commit d36c5f9

Browse files
committed
lsm-nobpf: Stop using deprecated helper
The bpf_program__next() helper was deprecated in favour of bpf_object__next_program(), so switch to that. Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
1 parent 8e9fc89 commit d36c5f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lsm-nobpf/lsm-nobpf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ int main(int argc, char **argv)
5757
goto out;
5858
}
5959

60-
prog = bpf_program__next(NULL, obj);
60+
prog = bpf_object__next_program(obj, NULL);
6161
if (!prog) {
6262
printf("No program!\n");
6363
err = -ENOENT;

0 commit comments

Comments
 (0)