Don't treat -unit as a mode flag when counting mode flags.

Submitted by: Gert-Jan Vons <gert-jan@bigfoot.com>
This commit is contained in:
Brian Somers 1999-11-09 00:32:21 +00:00
parent 12f035e0fd
commit 0d3751e7bd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=53043

View File

@ -240,6 +240,7 @@ ProcessArgs(int argc, char **argv, struct switches *sw)
sw->unit = atoi(argv[arg]);
} else
sw->unit = atoi(cp + 4);
optc--; /* this option isn't exclusive */
} else if (strcmp(cp, "quiet") == 0) {
sw->quiet = 1;
optc--; /* this option isn't exclusive */