tc filter help should just print usage

Doing tc filter help should end argument processing.
This prevents extraneous messages.  Reported by Marcela Maslanova
This commit is contained in:
Stephen Hemminger 2008-10-13 07:00:48 -07:00
parent bc7d1bd88d
commit 3a99df7074
1 changed files with 1 additions and 0 deletions

View 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);