]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
tc/police: remove unused argument to tc_print_police
authorStephen Hemminger <stephen@networkplumber.org>
Sat, 13 Apr 2024 22:04:05 +0000 (15:04 -0700)
committerDavid Ahern <dsahern@kernel.org>
Sun, 21 Apr 2024 01:45:38 +0000 (01:45 +0000)
FILE handle no longer used.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David Ahern <dsahern@kernel.org>
tc/f_basic.c
tc/f_bpf.c
tc/f_cgroup.c
tc/f_flow.c
tc/f_fw.c
tc/f_route.c
tc/f_u32.c
tc/m_police.c
tc/tc_util.h

index a1db5ba5dbc0f68b29541e3d30711cf2f4c55f77..eac9d19a4f5a791680e40b035e510c56f9dd1e4d 100644 (file)
@@ -130,7 +130,7 @@ static int basic_print_opt(const struct filter_util *qu, FILE *f,
 
        if (tb[TCA_BASIC_POLICE]) {
                print_nl();
-               tc_print_police(f, tb[TCA_BASIC_POLICE]);
+               tc_print_police(tb[TCA_BASIC_POLICE]);
        }
 
        if (tb[TCA_BASIC_ACT]) {
index 3e53c56ab7c3c6c95543377ed7ddb5bbe571c4c6..6dd75445c758f58eb3123e4416dc2f32afbe0856 100644 (file)
@@ -250,7 +250,7 @@ static int bpf_print_opt(const struct filter_util *qu, FILE *f,
 
        if (tb[TCA_BPF_POLICE]) {
                print_nl();
-               tc_print_police(f, tb[TCA_BPF_POLICE]);
+               tc_print_police(tb[TCA_BPF_POLICE]);
        }
 
        if (tb[TCA_BPF_ACT])
index 4aba4bacaf0965c8df9f2d32a0d65319cc10de45..9b94b62e206187f101146fd9da5f6100d3bf5ae3 100644 (file)
@@ -93,7 +93,7 @@ static int cgroup_print_opt(const struct filter_util *qu, FILE *f,
 
        if (tb[TCA_CGROUP_POLICE]) {
                print_nl();
-               tc_print_police(f, tb[TCA_CGROUP_POLICE]);
+               tc_print_police(tb[TCA_CGROUP_POLICE]);
        }
 
        if (tb[TCA_CGROUP_ACT])
index 07ecb84cf9052b3421d0ae4dc83073da81205806..1a1faa90a698eea7d40bd571ad5ead0dee2c6994 100644 (file)
@@ -347,7 +347,7 @@ static int flow_print_opt(const struct filter_util *fu, FILE *f, struct rtattr *
        if (tb[TCA_FLOW_EMATCHES])
                print_ematch(f, tb[TCA_FLOW_EMATCHES]);
        if (tb[TCA_FLOW_POLICE])
-               tc_print_police(f, tb[TCA_FLOW_POLICE]);
+               tc_print_police(tb[TCA_FLOW_POLICE]);
        if (tb[TCA_FLOW_ACT]) {
                print_nl();
                tc_print_action(f, tb[TCA_FLOW_ACT], 0);
index cf4abe122d8ce61122c5dfb1229424ebe94a8215..c9b4e1793f3425bd39f421844095ddef429e4574 100644 (file)
--- a/tc/f_fw.c
+++ b/tc/f_fw.c
@@ -146,7 +146,7 @@ static int fw_print_opt(const struct filter_util *qu, FILE *f, struct rtattr *op
        }
 
        if (tb[TCA_FW_POLICE])
-               tc_print_police(f, tb[TCA_FW_POLICE]);
+               tc_print_police(tb[TCA_FW_POLICE]);
        if (tb[TCA_FW_INDEV]) {
                struct rtattr *idev = tb[TCA_FW_INDEV];
 
index 87d865b7182b039b273cee969ec88e45073e04ee..96b99b06be179c90dfb0d24d9577b5206dd98ef1 100644 (file)
@@ -165,7 +165,7 @@ static int route_print_opt(const struct filter_util *qu, FILE *f, struct rtattr
                print_color_string(PRINT_ANY, COLOR_IFNAME, "fromif", "fromif %s",
                        ll_index_to_name(rta_getattr_u32(tb[TCA_ROUTE4_IIF])));
        if (tb[TCA_ROUTE4_POLICE])
-               tc_print_police(f, tb[TCA_ROUTE4_POLICE]);
+               tc_print_police(tb[TCA_ROUTE4_POLICE]);
        if (tb[TCA_ROUTE4_ACT])
                tc_print_action(f, tb[TCA_ROUTE4_ACT], 0);
        return 0;
index df8d01e873fa1681bc9c7812fc1fea7fd04e7e43..8f9e7bc81c649c65e390f612e46f61e503b334eb 100644 (file)
@@ -1365,7 +1365,7 @@ static int u32_print_opt(const struct filter_util *qu, FILE *f, struct rtattr *o
 
        if (tb[TCA_U32_POLICE]) {
                print_nl();
-               tc_print_police(f, tb[TCA_U32_POLICE]);
+               tc_print_police(tb[TCA_U32_POLICE]);
        }
 
        if (tb[TCA_U32_INDEV]) {
index 7fb710b0daf37aa22881c9cf6704ef5d1f8c21e3..5c7438b94d83bce9f3eae0da976b8ac12fa16ca4 100644 (file)
@@ -260,7 +260,7 @@ int parse_police(int *argc_p, char ***argv_p, int tca_id, struct nlmsghdr *n)
        return act_parse_police(NULL, argc_p, argv_p, tca_id, n);
 }
 
-static int print_police(const struct action_util *a, FILE *f, struct rtattr *arg)
+static int print_police(const struct action_util *a, FILE *funused, struct rtattr *arg)
 {
        SPRINT_BUF(b2);
        struct tc_police *p;
@@ -356,7 +356,7 @@ static int print_police(const struct action_util *a, FILE *f, struct rtattr *arg
        return 0;
 }
 
-int tc_print_police(FILE *f, struct rtattr *arg)
+int tc_print_police(struct rtattr *arg)
 {
-       return print_police(&police_action_util, f, arg);
+       return print_police(&police_action_util, NULL, arg);
 }
index 444293853439c5cfd04a4500861c13b42b118d2d..6470c23cda56fd47dc8df16bac4b3c5ab180b123 100644 (file)
@@ -98,7 +98,7 @@ int get_tc_classid(__u32 *h, const char *str);
 int print_tc_classid(char *buf, int len, __u32 h);
 char *sprint_tc_classid(__u32 h, char *buf);
 
-int tc_print_police(FILE *f, struct rtattr *tb);
+int tc_print_police(struct rtattr *tb);
 int parse_percent(double *val, const char *str);
 int parse_police(int *argc_p, char ***argv_p, int tca_id, struct nlmsghdr *n);