Skip to content

Commit

Permalink
samples/bpf: add static to function with no prototype
Browse files Browse the repository at this point in the history
Fixes the following warning

samples/bpf/cookie_uid_helper_example.c: At top level:
samples/bpf/cookie_uid_helper_example.c:276:6: warning: no previous prototype for ‘finish’ [-Wmissing-prototypes]
 void finish(int ret)
      ^~~~~~
  HOSTLD  samples/bpf/per_socket_stats_example

Signed-off-by: Alexander Alemayhu <[email protected]>
Acked-by: Daniel Borkmann <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
aalemayhu authored and davem330 committed Apr 24, 2017
1 parent 69b6a7f commit 4784726
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/bpf/cookie_uid_helper_example.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ static int usage(void)
return 1;
}

void finish(int ret)
static void finish(int ret)
{
test_finish = true;
}
Expand Down

0 comments on commit 4784726

Please sign in to comment.