diff options
author | Kevin Steves <stevesk@cvs.openbsd.org> | 2007-04-07 21:57:28 +0000 |
---|---|---|
committer | Kevin Steves <stevesk@cvs.openbsd.org> | 2007-04-07 21:57:28 +0000 |
commit | 9929df58f9f15d3271928f238b164a38abb5863a (patch) | |
tree | 0147f721273dde1bcf7e7c1d31a87a770ceb6657 /usr.sbin | |
parent | 014aadb08a942a913b3fc8ea83de912fe4f162fd (diff) |
KNF, spaces; ok millert@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/lpr/lpc/cmds.c | 6 | ||||
-rw-r--r-- | usr.sbin/lpr/lpd/printjob.c | 8 | ||||
-rw-r--r-- | usr.sbin/lpr/lpr/lpr.c | 8 |
3 files changed, 11 insertions, 11 deletions
diff --git a/usr.sbin/lpr/lpc/cmds.c b/usr.sbin/lpr/lpc/cmds.c index 1d3a5478d9c..04a8ef4bb41 100644 --- a/usr.sbin/lpr/lpc/cmds.c +++ b/usr.sbin/lpr/lpc/cmds.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmds.c,v 1.18 2003/06/02 23:36:53 millert Exp $ */ +/* $OpenBSD: cmds.c,v 1.19 2007/04/07 21:57:26 stevesk Exp $ */ /* $NetBSD: cmds.c,v 1.12 1997/10/05 15:12:06 mrg Exp $ */ /* @@ -41,7 +41,7 @@ static const char copyright[] = #if 0 static const char sccsid[] = "@(#)cmds.c 8.2 (Berkeley) 4/28/95"; #else -static const char rcsid[] = "$OpenBSD: cmds.c,v 1.18 2003/06/02 23:36:53 millert Exp $"; +static const char rcsid[] = "$OpenBSD: cmds.c,v 1.19 2007/04/07 21:57:26 stevesk Exp $"; #endif #endif /* not lint */ @@ -559,7 +559,7 @@ down(int argc, char **argv) printf("unknown printer %s\n", printer); return; } else if (status == -3) - fatal("potential reference loop detected in printcap file"); + fatal("potential reference loop detected in printcap file"); putmsg(argc - 2, argv + 2); } diff --git a/usr.sbin/lpr/lpd/printjob.c b/usr.sbin/lpr/lpd/printjob.c index 59185827041..3348672aeeb 100644 --- a/usr.sbin/lpr/lpd/printjob.c +++ b/usr.sbin/lpr/lpd/printjob.c @@ -1,4 +1,4 @@ -/* $OpenBSD: printjob.c,v 1.41 2006/12/11 20:50:55 deraadt Exp $ */ +/* $OpenBSD: printjob.c,v 1.42 2007/04/07 21:57:27 stevesk Exp $ */ /* $NetBSD: printjob.c,v 1.31 2002/01/21 14:42:30 wiz Exp $ */ /* @@ -1010,7 +1010,7 @@ banner(char *name1, char *name2) (void)write(ofd, "\n\n", 2); scan_out(ofd, name2, '\0'); if (class[0]) { - (void)write(ofd,"\n\n\n",3); + (void)write(ofd, "\n\n\n", 3); scan_out(ofd, class, '\0'); } (void)write(ofd, "\n\n\n\n\t\t\t\t\tJob: ", 15); @@ -1275,7 +1275,7 @@ init(void) SD = _PATH_DEFSPOOL; if (cgetnum(bp, "du", &DU) < 0) DU = DEFUID; - if (cgetstr(bp,"ff", &FF) == -1) + if (cgetstr(bp, "ff", &FF) == -1) FF = DEFFF; if (cgetnum(bp, "pw", &PW) < 0) PW = DEFWIDTH; @@ -1283,7 +1283,7 @@ init(void) if (cgetnum(bp, "pl", &PL) < 0) PL = DEFLENGTH; (void)snprintf(&length[2], sizeof(length) - 2, "%ld", PL); - if (cgetnum(bp,"px", &PX) < 0) + if (cgetnum(bp, "px", &PX) < 0) PX = 0; (void)snprintf(&pxwidth[2], sizeof(pxwidth) - 2, "%ld", PX); if (cgetnum(bp, "py", &PY) < 0) diff --git a/usr.sbin/lpr/lpr/lpr.c b/usr.sbin/lpr/lpr/lpr.c index 26041c18ca2..83ffd06631b 100644 --- a/usr.sbin/lpr/lpr/lpr.c +++ b/usr.sbin/lpr/lpr/lpr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lpr.c,v 1.40 2007/03/06 11:11:53 jmc Exp $ */ +/* $OpenBSD: lpr.c,v 1.41 2007/04/07 21:57:27 stevesk Exp $ */ /* $NetBSD: lpr.c,v 1.19 2000/10/11 20:23:52 is Exp $ */ /* @@ -46,7 +46,7 @@ static const char copyright[] = #if 0 static const char sccsid[] = "@(#)lpr.c 8.4 (Berkeley) 4/28/95"; #else -static const char rcsid[] = "$OpenBSD: lpr.c,v 1.40 2007/03/06 11:11:53 jmc Exp $"; +static const char rcsid[] = "$OpenBSD: lpr.c,v 1.41 2007/04/07 21:57:27 stevesk Exp $"; #endif #endif /* not lint */ @@ -438,7 +438,7 @@ copy(int f, char *n) } } (void)close(fd); - if (nc==0 && nr==0) + if (nc == 0 && nr == 0) warnx("%s: empty input file", f ? n : "stdin"); else nact++; @@ -658,7 +658,7 @@ chkprinter(char *s) cgetstr(bp, "rg", &RG); if (cgetnum(bp, "mx", &MX) < 0) MX = DEFMX; - if (cgetnum(bp,"mc", &MC) < 0) + if (cgetnum(bp, "mc", &MC) < 0) MC = DEFMAXCOPIES; if (cgetnum(bp, "du", &DU) < 0) DU = DEFUID; |