summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorAlexander Alemayhu <alexander@alemayhu.com>2017-04-24 15:31:07 +0200
committerDavid S. Miller <davem@davemloft.net>2017-04-24 16:20:19 -0400
commit4784726f69ffa3e076d502a5885d753ccb24a82d (patch)
tree8dfbf842a06748cf390eeb125f9b388a04486d4e /samples
parent69b6a7f743d3dac773f9a4c7b1786164ae329490 (diff)
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>
Diffstat (limited to 'samples')
-rw-r--r--samples/bpf/cookie_uid_helper_example.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/bpf/cookie_uid_helper_example.c b/samples/bpf/cookie_uid_helper_example.c
index ad5afedf2e70..9ce55840d61d 100644
--- a/samples/bpf/cookie_uid_helper_example.c
+++ b/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;
}