diff options
Diffstat (limited to 'usr.sbin/lpr')
-rw-r--r-- | usr.sbin/lpr/filters/lpf.c | 4 | ||||
-rw-r--r-- | usr.sbin/lpr/lpd/lpd.c | 8 | ||||
-rw-r--r-- | usr.sbin/lpr/lpq/lpq.c | 6 | ||||
-rw-r--r-- | usr.sbin/lpr/lpr/lpr.c | 10 | ||||
-rw-r--r-- | usr.sbin/lpr/pac/pac.c | 8 |
5 files changed, 18 insertions, 18 deletions
diff --git a/usr.sbin/lpr/filters/lpf.c b/usr.sbin/lpr/filters/lpf.c index 31f60b9f295..8c5ec688e52 100644 --- a/usr.sbin/lpr/filters/lpf.c +++ b/usr.sbin/lpr/filters/lpf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lpf.c,v 1.12 2009/10/27 23:59:52 deraadt Exp $ */ +/* $OpenBSD: lpf.c,v 1.13 2015/02/09 23:00:14 deraadt Exp $ */ /* $NetBSD: lpf.c,v 1.8 2000/04/29 00:12:32 abs Exp $ */ /* @@ -89,7 +89,7 @@ main(int argc, char **argv) indent = atoi(optarg); break; case 'r': /* map nl->cr-nl */ - onlcr++; + onlcr = 1; break; case 'c': /* Print control chars */ literal++; diff --git a/usr.sbin/lpr/lpd/lpd.c b/usr.sbin/lpr/lpd/lpd.c index 38b37e96c3f..dad94bf0a23 100644 --- a/usr.sbin/lpr/lpd/lpd.c +++ b/usr.sbin/lpr/lpd/lpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lpd.c,v 1.57 2015/01/16 06:40:18 deraadt Exp $ */ +/* $OpenBSD: lpd.c,v 1.58 2015/02/09 23:00:14 deraadt Exp $ */ /* $NetBSD: lpd.c,v 1.33 2002/01/21 14:42:29 wiz Exp $ */ /* @@ -176,7 +176,7 @@ main(int argc, char **argv) options |= SO_DEBUG; break; case 'l': - lflag++; + lflag = 1; break; case 'n': child_max = strtol(optarg, &cp, 10); @@ -185,10 +185,10 @@ main(int argc, char **argv) optarg); break; case 'r': - rflag++; + rflag = 1; break; case 's': - sflag++; + sflag = 1; break; case 'w': l = strtol(optarg, &cp, 10); diff --git a/usr.sbin/lpr/lpq/lpq.c b/usr.sbin/lpr/lpq/lpq.c index 6947dfb7fe2..115da6b3324 100644 --- a/usr.sbin/lpr/lpq/lpq.c +++ b/usr.sbin/lpr/lpq/lpq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lpq.c,v 1.21 2015/01/16 06:40:18 deraadt Exp $ */ +/* $OpenBSD: lpq.c,v 1.22 2015/02/09 23:00:14 deraadt Exp $ */ /* $NetBSD: lpq.c,v 1.9 1999/12/07 14:54:47 mrg Exp $ */ /* @@ -88,10 +88,10 @@ main(int argc, char **argv) while ((ch = getopt(argc, argv, "alP:w:")) != -1) { switch(ch) { case 'a': - ++aflag; + aflag = 1; break; case 'l': /* long output */ - ++lflag; + lflag = 1; break; case 'P': /* printer name */ printer = optarg; diff --git a/usr.sbin/lpr/lpr/lpr.c b/usr.sbin/lpr/lpr/lpr.c index 5027435df47..1bb9eb2f95a 100644 --- a/usr.sbin/lpr/lpr/lpr.c +++ b/usr.sbin/lpr/lpr/lpr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lpr.c,v 1.47 2015/01/16 06:40:18 deraadt Exp $ */ +/* $OpenBSD: lpr.c,v 1.48 2015/02/09 23:00:14 deraadt Exp $ */ /* $NetBSD: lpr.c,v 1.19 2000/10/11 20:23:52 is Exp $ */ /* @@ -209,19 +209,19 @@ main(int argc, char **argv) break; case 'm': /* send mail when done */ - mailflg++; + mailflg = 1; break; case 'q': /* just q job */ - qflag++; + qflag = 1; break; case 'r': /* remove file when done */ - rflag++; + rflag = 1; break; case 's': /* try to link files */ - sflag++; + sflag = 1; break; case 'w': /* versatec page width */ diff --git a/usr.sbin/lpr/pac/pac.c b/usr.sbin/lpr/pac/pac.c index bf48b9dae11..1309a997c75 100644 --- a/usr.sbin/lpr/pac/pac.c +++ b/usr.sbin/lpr/pac/pac.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pac.c,v 1.23 2015/01/16 14:36:44 deraadt Exp $ */ +/* $OpenBSD: pac.c,v 1.24 2015/02/09 23:00:14 deraadt Exp $ */ /* $NetBSD: pac.c,v 1.14 2000/04/27 13:40:18 msaitoh Exp $ */ /* @@ -127,14 +127,14 @@ main(int argc, char **argv) /* * Summarize and compress accounting file. */ - summarize++; + summarize = 1; continue; case 'c': /* * Sort by cost. */ - sort++; + sort = 1; continue; case 'm': @@ -148,7 +148,7 @@ main(int argc, char **argv) /* * Reverse sorting order. */ - reverse++; + reverse = 1; continue; default: |