]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - tc/m_simple.c
tc simple action: bug fix
[mirror_iproute2.git] / tc / m_simple.c
index feba61b5d2059cd8592ed0f9360fc2fb972a1e40..27b3e5e406d0587ac06a8be4ca19d347b406c8b7 100644 (file)
@@ -100,7 +100,7 @@ parse_simple(struct action_util *a, int *argc_p, char ***argv_p, int tca_id,
        struct tc_defact sel = {};
        int argc = *argc_p;
        char **argv = *argv_p;
-       int ok = 0, maybe_bind = 0;
+       int ok = 0;
        struct rtattr *tail;
        char *simpdata = NULL;
 
@@ -150,7 +150,7 @@ parse_simple(struct action_util *a, int *argc_p, char ***argv_p, int tca_id,
                if (matches(*argv, "index") == 0) {
                        NEXT_ARG();
                        if (get_u32(&sel.index, *argv, 10)) {
-                               fprintf(stderr, "simple: Illegal \"index\"\n",
+                               fprintf(stderr, "simple: Illegal \"index\" (%s)\n",
                                        *argv);
                                return -1;
                        }
@@ -171,7 +171,6 @@ parse_simple(struct action_util *a, int *argc_p, char ***argv_p, int tca_id,
                return -1;
        }
 
-
        sel.action = TC_ACT_PIPE;
 
        tail = NLMSG_TAIL(n);