]> rtime.felk.cvut.cz Git - lisovros/iproute2_canprio.git/commitdiff
tc filter help should just print usage
authorStephen Hemminger <stephen.hemminger@vyatta.com>
Mon, 13 Oct 2008 14:00:48 +0000 (07:00 -0700)
committerStephen Hemminger <stephen.hemminger@vyatta.com>
Mon, 13 Oct 2008 14:00:48 +0000 (07:00 -0700)
Doing tc filter help should end argument processing.
This prevents extraneous messages.  Reported by Marcela Maslanova

tc/tc_filter.c

index 177446ef0d160cd007fba83465cd9037f9563fe1..919c57c133681f0f066bcd3adb978feda719e118 100644 (file)
@@ -121,6 +121,7 @@ int tc_filter_modify(int cmd, unsigned flags, int argc, char **argv)
                                return -1;
                } else if (matches(*argv, "help") == 0) {
                        usage();
+                       return 0;
                } else {
                        strncpy(k, *argv, sizeof(k)-1);