]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
xfrm: make xfrm_stat_print_nokeys static
authorStephen Hemminger <stephen@networkplumber.org>
Thu, 1 Jun 2023 17:13:23 +0000 (10:13 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 2 Jun 2023 16:33:34 +0000 (09:33 -0700)
This function is only used in one file.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
ip/xfrm.h
ip/xfrm_state.c

index 33c42730375d8616714aa7e07ea654c11151105f..5238fc8b2b88c504190ed87a66d5abfbb2606cf7 100644 (file)
--- a/ip/xfrm.h
+++ b/ip/xfrm.h
@@ -90,7 +90,6 @@ struct xfrm_filter {
 extern struct xfrm_filter filter;
 
 int xfrm_state_print(struct nlmsghdr *n, void *arg);
-int xfrm_state_print_nokeys(struct nlmsghdr *n, void *arg);
 int xfrm_policy_print(struct nlmsghdr *n, void *arg);
 int do_xfrm_state(int argc, char **argv);
 int do_xfrm_policy(int argc, char **argv);
index aa0dce072dff57a762e441f0190b6fd06e6ccd3a..a7b3d0e1415668d3cab47946df3b4be7f221dafb 100644 (file)
@@ -1027,7 +1027,7 @@ int xfrm_state_print(struct nlmsghdr *n, void *arg)
        return __do_xfrm_state_print(n, arg, false);
 }
 
-int xfrm_state_print_nokeys(struct nlmsghdr *n, void *arg)
+static int xfrm_state_print_nokeys(struct nlmsghdr *n, void *arg)
 {
        return __do_xfrm_state_print(n, arg, true);
 }