diff options
Diffstat (limited to 'usr.sbin/pppd/pppstats/pppstats.c')
-rw-r--r-- | usr.sbin/pppd/pppstats/pppstats.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/pppd/pppstats/pppstats.c b/usr.sbin/pppd/pppstats/pppstats.c index 640ca0c82da..a606caf129a 100644 --- a/usr.sbin/pppd/pppstats/pppstats.c +++ b/usr.sbin/pppd/pppstats/pppstats.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pppstats.c,v 1.11 2015/01/16 06:40:19 deraadt Exp $ */ +/* $OpenBSD: pppstats.c,v 1.12 2015/02/09 23:00:14 deraadt Exp $ */ /* * print PPP statistics: @@ -318,19 +318,19 @@ main(argc, argv) while ((c = getopt(argc, argv, "advrzc:w:")) != -1) { switch (c) { case 'a': - ++aflag; + aflag = 1; break; case 'd': - ++dflag; + dflag = 1; break; case 'v': - ++vflag; + vflag = 1; break; case 'r': - ++rflag; + rflag = 1; break; case 'z': - ++zflag; + zflag = 1; break; case 'c': count = atoi(optarg); |