From 21f1d38d7df03523cf3bb43777199458aa51a7d6 Mon Sep 17 00:00:00 2001 From: brian Date: Tue, 9 Nov 1999 00:32:21 +0000 Subject: Don't treat -unit as a mode flag when counting mode flags. Submitted by: Gert-Jan Vons --- usr.sbin/ppp/main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'usr.sbin') diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c index 64b8483..5671a54 100644 --- a/usr.sbin/ppp/main.c +++ b/usr.sbin/ppp/main.c @@ -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 */ -- cgit v1.1