]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - tc/q_ingress.c
tc: Remove pointless assignments in batch()
[mirror_iproute2.git] / tc / q_ingress.c
index c3c9b4031d548d7228976f4a454e4a01e43863ab..93313c9c2aec6edf41b51336df4466926be35033 100644 (file)
@@ -21,7 +21,7 @@ static void explain(void)
 }
 
 static int ingress_parse_opt(struct qdisc_util *qu, int argc, char **argv,
-                            struct nlmsghdr *n)
+                            struct nlmsghdr *n, const char *dev)
 {
        while (argc > 0) {
                if (strcmp(*argv, "handle") == 0) {
@@ -34,14 +34,13 @@ static int ingress_parse_opt(struct qdisc_util *qu, int argc, char **argv,
                }
        }
 
-       addattr_l(n, 1024, TCA_OPTIONS, NULL, 0);
        return 0;
 }
 
 static int ingress_print_opt(struct qdisc_util *qu, FILE *f,
                             struct rtattr *opt)
 {
-       fprintf(f, "---------------- ");
+       print_string(PRINT_FP, NULL, "---------------- ", NULL);
        return 0;
 }