]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - tc/q_mqprio.c
rdma: Properly mark RDMAtool license
[mirror_iproute2.git] / tc / q_mqprio.c
index b57351c2be6e86587e884a682d6b4810f15bba19..7cd18ae152e1516f2103f2dca70d38c09560bf8b 100644 (file)
@@ -12,7 +12,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
-#include <syslog.h>
 #include <fcntl.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
@@ -34,7 +33,7 @@ static void explain(void)
 }
 
 static int mqprio_parse_opt(struct qdisc_util *qu, int argc,
-                           char **argv, struct nlmsghdr *n)
+                           char **argv, struct nlmsghdr *n, const char *dev)
 {
        int idx;
        struct tc_mqprio_qopt opt = {
@@ -168,8 +167,7 @@ static int mqprio_parse_opt(struct qdisc_util *qu, int argc,
                        explain();
                        return -1;
                } else {
-                       fprintf(stderr, "Unknown argument\n");
-                       return -1;
+                       invarg("unknown argument", *argv);
                }
                argc--; argv++;
        }