Explorar o código

samples/bpf: add static to function with no prototype

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 <alexander@alemayhu.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Alexander Alemayhu %!s(int64=8) %!d(string=hai) anos
pai
achega
4784726f69
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      samples/bpf/cookie_uid_helper_example.c

+ 1 - 1
samples/bpf/cookie_uid_helper_example.c

@@ -273,7 +273,7 @@ static int usage(void)
 	return 1;
 }
 
-void finish(int ret)
+static void finish(int ret)
 {
 	test_finish = true;
 }