FILE handle no longer used.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David Ahern <dsahern@kernel.org>
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]) {
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])
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])
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);
}
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];
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;
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]) {
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;
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);
}
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);