@@ -200,7 +200,7 @@ static int bpf_print_opt(struct action_util *au, FILE *f, struct rtattr *arg)
if (tb[TCA_ACT_BPF_TM]) {
struct tcf_t *tm = RTA_DATA(tb[TCA_ACT_BPF_TM]);
- print_tm(f, tm);
+ print_tm(tm);
}
}
@@ -123,7 +123,7 @@ static int print_connmark(struct action_util *au, FILE *f, struct rtattr *arg)
if (tb[TCA_CONNMARK_TM]) {
struct tcf_t *tm = RTA_DATA(tb[TCA_CONNMARK_TM]);
- print_tm(f, tm);
+ print_tm(tm);
}
}
print_nl();
@@ -213,7 +213,7 @@ print_csum(struct action_util *au, FILE *f, struct rtattr *arg)
if (tb[TCA_CSUM_TM]) {
struct tcf_t *tm = RTA_DATA(tb[TCA_CSUM_TM]);
- print_tm(f, tm);
+ print_tm(tm);
}
}
print_nl();
@@ -534,7 +534,7 @@ static int print_ct(struct action_util *au, FILE *f, struct rtattr *arg)
if (tb[TCA_CT_TM]) {
struct tcf_t *tm = RTA_DATA(tb[TCA_CT_TM]);
- print_tm(f, tm);
+ print_tm(tm);
}
}
print_nl();
@@ -166,7 +166,7 @@ static void print_ctinfo_stats(FILE *f, struct rtattr *tb[TCA_CTINFO_MAX + 1])
if (tb[TCA_CTINFO_TM]) {
tm = RTA_DATA(tb[TCA_CTINFO_TM]);
- print_tm(f, tm);
+ print_tm(tm);
}
if (tb[TCA_CTINFO_STATS_DSCP_SET])
@@ -203,7 +203,7 @@ print_gact(struct action_util *au, FILE *f, struct rtattr *arg)
if (tb[TCA_GACT_TM]) {
struct tcf_t *tm = RTA_DATA(tb[TCA_GACT_TM]);
- print_tm(f, tm);
+ print_tm(tm);
}
}
print_nl();
@@ -527,7 +527,7 @@ static int print_gate(struct action_util *au, FILE *f, struct rtattr *arg)
if (tb[TCA_GATE_TM]) {
struct tcf_t *tm = RTA_DATA(tb[TCA_GATE_TM]);
- print_tm(f, tm);
+ print_tm(tm);
}
}
@@ -315,7 +315,7 @@ static int print_ife(struct action_util *au, FILE *f, struct rtattr *arg)
if (tb[TCA_IFE_TM]) {
struct tcf_t *tm = RTA_DATA(tb[TCA_IFE_TM]);
- print_tm(f, tm);
+ print_tm(tm);
}
}
@@ -348,7 +348,7 @@ print_mirred(struct action_util *au, FILE *f, struct rtattr *arg)
if (tb[TCA_MIRRED_TM]) {
struct tcf_t *tm = RTA_DATA(tb[TCA_MIRRED_TM]);
- print_tm(f, tm);
+ print_tm(tm);
}
}
print_nl();
@@ -283,7 +283,7 @@ static int print_mpls(struct action_util *au, FILE *f, struct rtattr *arg)
if (tb[TCA_MPLS_TM]) {
struct tcf_t *tm = RTA_DATA(tb[TCA_MPLS_TM]);
- print_tm(f, tm);
+ print_tm(tm);
}
}
@@ -179,7 +179,7 @@ print_nat(struct action_util *au, FILE * f, struct rtattr *arg)
if (tb[TCA_NAT_TM]) {
struct tcf_t *tm = RTA_DATA(tb[TCA_NAT_TM]);
- print_tm(f, tm);
+ print_tm(tm);
}
}
@@ -801,7 +801,7 @@ static int print_pedit(struct action_util *au, FILE *f, struct rtattr *arg)
if (tb[TCA_PEDIT_TM]) {
struct tcf_t *tm = RTA_DATA(tb[TCA_PEDIT_TM]);
- print_tm(f, tm);
+ print_tm(tm);
}
}
open_json_array(PRINT_JSON, "keys");
@@ -347,7 +347,7 @@ static int print_police(struct action_util *a, FILE *f, struct rtattr *arg)
if (tb[TCA_POLICE_TM]) {
struct tcf_t *tm = RTA_DATA(tb[TCA_POLICE_TM]);
- print_tm(f, tm);
+ print_tm(tm);
}
}
print_nl();
@@ -171,7 +171,7 @@ static int print_sample(struct action_util *au, FILE *f, struct rtattr *arg)
if (tb[TCA_SAMPLE_TM]) {
struct tcf_t *tm = RTA_DATA(tb[TCA_SAMPLE_TM]);
- print_tm(f, tm);
+ print_tm(tm);
}
}
print_nl();
@@ -187,7 +187,7 @@ static int print_simple(struct action_util *au, FILE *f, struct rtattr *arg)
if (tb[TCA_DEF_TM]) {
struct tcf_t *tm = RTA_DATA(tb[TCA_DEF_TM]);
- print_tm(f, tm);
+ print_tm(tm);
}
}
print_nl();
@@ -250,7 +250,7 @@ static int print_skbedit(struct action_util *au, FILE *f, struct rtattr *arg)
if (tb[TCA_SKBEDIT_TM]) {
struct tcf_t *tm = RTA_DATA(tb[TCA_SKBEDIT_TM]);
- print_tm(f, tm);
+ print_tm(tm);
}
}
@@ -218,7 +218,7 @@ static int print_skbmod(struct action_util *au, FILE *f, struct rtattr *arg)
if (tb[TCA_SKBMOD_TM]) {
struct tcf_t *tm = RTA_DATA(tb[TCA_SKBMOD_TM]);
- print_tm(f, tm);
+ print_tm(tm);
}
}
@@ -742,7 +742,7 @@ static int print_tunnel_key(struct action_util *au, FILE *f, struct rtattr *arg)
if (tb[TCA_TUNNEL_KEY_TM]) {
struct tcf_t *tm = RTA_DATA(tb[TCA_TUNNEL_KEY_TM]);
- print_tm(f, tm);
+ print_tm(tm);
}
}
@@ -293,7 +293,7 @@ static int print_vlan(struct action_util *au, FILE *f, struct rtattr *arg)
if (tb[TCA_VLAN_TM]) {
struct tcf_t *tm = RTA_DATA(tb[TCA_VLAN_TM]);
- print_tm(f, tm);
+ print_tm(tm);
}
}
@@ -650,7 +650,7 @@ const char *get_clock_name(clockid_t clockid)
return "invalid";
}
-void print_tm(FILE *f, const struct tcf_t *tm)
+void print_tm(const struct tcf_t *tm)
{
int hz = get_user_hz();
@@ -114,7 +114,7 @@ void print_action_control(FILE *f, const char *prefix,
int police_print_xstats(struct action_util *a, FILE *f, struct rtattr *tb);
int tc_print_action(FILE *f, const struct rtattr *tb, unsigned short tot_acts);
int parse_action(int *argc_p, char ***argv_p, int tca_id, struct nlmsghdr *n);
-void print_tm(FILE *f, const struct tcf_t *tm);
+void print_tm(const struct tcf_t *tm);
int prio_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt);
int cls_names_init(char *path);
File argument no longer used. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> --- tc/m_bpf.c | 2 +- tc/m_connmark.c | 2 +- tc/m_csum.c | 2 +- tc/m_ct.c | 2 +- tc/m_ctinfo.c | 2 +- tc/m_gact.c | 2 +- tc/m_gate.c | 2 +- tc/m_ife.c | 2 +- tc/m_mirred.c | 2 +- tc/m_mpls.c | 2 +- tc/m_nat.c | 2 +- tc/m_pedit.c | 2 +- tc/m_police.c | 2 +- tc/m_sample.c | 2 +- tc/m_simple.c | 2 +- tc/m_skbedit.c | 2 +- tc/m_skbmod.c | 2 +- tc/m_tunnel_key.c | 2 +- tc/m_vlan.c | 2 +- tc/tc_util.c | 2 +- tc/tc_util.h | 2 +- 21 files changed, 21 insertions(+), 21 deletions(-)