diff options
author | Rodney W. Grimes <rgrimes@FreeBSD.org> | 1995-05-30 03:57:47 +0000 |
---|---|---|
committer | Rodney W. Grimes <rgrimes@FreeBSD.org> | 1995-05-30 03:57:47 +0000 |
commit | 709e8f9ae1d734c1a163c9b421df4b8153939ce7 (patch) | |
tree | 15a9c7203efd47ba6dde2896fdb6327dddd4547f /usr.sbin/lpr | |
parent | 010f5413b5781bc362fde190ec835a424ec8d28e (diff) | |
download | src-709e8f9ae1d734c1a163c9b421df4b8153939ce7.tar.gz src-709e8f9ae1d734c1a163c9b421df4b8153939ce7.zip |
Remove trailing whitespace.
Notes
Notes:
svn path=/head/; revision=8857
Diffstat (limited to 'usr.sbin/lpr')
-rw-r--r-- | usr.sbin/lpr/common_source/common.c | 2 | ||||
-rw-r--r-- | usr.sbin/lpr/common_source/recvjob.c | 2 | ||||
-rw-r--r-- | usr.sbin/lpr/filters/lpf.c | 4 | ||||
-rw-r--r-- | usr.sbin/lpr/lpc/cmds.c | 8 | ||||
-rw-r--r-- | usr.sbin/lpr/lpd/lpdchar.c | 18 | ||||
-rw-r--r-- | usr.sbin/lpr/lpd/printjob.c | 4 | ||||
-rw-r--r-- | usr.sbin/lpr/lpd/recvjob.c | 2 | ||||
-rw-r--r-- | usr.sbin/lpr/lpr/lpr.c | 6 | ||||
-rw-r--r-- | usr.sbin/lpr/pac/pac.c | 2 | ||||
-rw-r--r-- | usr.sbin/lpr/runqueue/lpdchar.c | 18 | ||||
-rw-r--r-- | usr.sbin/lpr/runqueue/printjob.c | 4 |
11 files changed, 35 insertions, 35 deletions
diff --git a/usr.sbin/lpr/common_source/common.c b/usr.sbin/lpr/common_source/common.c index 49f79390e6e6..65714b4d87b4 100644 --- a/usr.sbin/lpr/common_source/common.c +++ b/usr.sbin/lpr/common_source/common.c @@ -221,7 +221,7 @@ getq(namelist) /* * Estimate the array size by taking the size of the directory file - * and dividing it by a multiple of the minimum size entry. + * and dividing it by a multiple of the minimum size entry. */ arraysz = (stbuf.st_size / 24); queue = (struct queue **)malloc(arraysz * sizeof(struct queue *)); diff --git a/usr.sbin/lpr/common_source/recvjob.c b/usr.sbin/lpr/common_source/recvjob.c index 67a61830ff29..e199af1acb18 100644 --- a/usr.sbin/lpr/common_source/recvjob.c +++ b/usr.sbin/lpr/common_source/recvjob.c @@ -94,7 +94,7 @@ recvjob() frecverr("unknown printer %s", printer); else if (status == -3) fatal("potential reference loop detected in printcap file"); - + if (cgetstr(bp, "lf", &LF) == -1) LF = _PATH_CONSOLE; if (cgetstr(bp, "sd", &SD) == -1) diff --git a/usr.sbin/lpr/filters/lpf.c b/usr.sbin/lpr/filters/lpf.c index 5335f316c564..3bec84d61de0 100644 --- a/usr.sbin/lpr/filters/lpf.c +++ b/usr.sbin/lpr/filters/lpf.c @@ -71,7 +71,7 @@ char *host; /* user's machine name */ char *acctfile; /* accounting information file */ int -main(argc, argv) +main(argc, argv) int argc; char *argv[]; { @@ -117,7 +117,7 @@ main(argc, argv) for (cp = buf[0], limit = buf[MAXREP]; cp < limit; *cp++ = ' '); done = 0; - + while (!done) { col = indent; maxrep = -1; diff --git a/usr.sbin/lpr/lpc/cmds.c b/usr.sbin/lpr/lpc/cmds.c index 7c2b6fe632be..193eac55d799 100644 --- a/usr.sbin/lpr/lpc/cmds.c +++ b/usr.sbin/lpr/lpc/cmds.c @@ -342,7 +342,7 @@ cleanpr() } } while (++i < nitems); } - + static void unlinkf(name) char *name; @@ -976,7 +976,7 @@ topq(argc, argv) */ if (changed && stat(LO, &stbuf) >= 0) (void) chmod(LO, (stbuf.st_mode & 0777) | 01); -} +} /* * Reposition the job by changing the modification time of @@ -1008,8 +1008,8 @@ doarg(job) FILE *fp; /* - * Look for a job item consisting of system name, colon, number - * (example: ucbarpa:114) + * Look for a job item consisting of system name, colon, number + * (example: ucbarpa:114) */ if ((cp = index(job, ':')) != NULL) { machine = job; diff --git a/usr.sbin/lpr/lpd/lpdchar.c b/usr.sbin/lpr/lpd/lpdchar.c index 4a4f5da1ccbe..c5e11d4aca93 100644 --- a/usr.sbin/lpr/lpd/lpdchar.c +++ b/usr.sbin/lpr/lpd/lpdchar.c @@ -163,7 +163,7 @@ char scnkey[][HEIGHT] = /* this is relatively easy to modify */ c_1___1_, c1___1_1, c_____1_ }, /* % */ - + { c_11____, c1__1___, c1___1__, @@ -173,7 +173,7 @@ char scnkey[][HEIGHT] = /* this is relatively easy to modify */ c1___11_, c1___11_, c_111__1 }, /* & */ - + { c___11__, c___11__, c___1___, @@ -183,7 +183,7 @@ char scnkey[][HEIGHT] = /* this is relatively easy to modify */ c_______, c_______, c_______ }, /* ' */ - + { c____1__, c___1___, c__1____, @@ -193,7 +193,7 @@ char scnkey[][HEIGHT] = /* this is relatively easy to modify */ c__1____, c___1___, c____1__ }, /* ( */ - + { c__1____, c___1___, c____1__, @@ -203,7 +203,7 @@ char scnkey[][HEIGHT] = /* this is relatively easy to modify */ c____1__, c___1___, c__1____ }, /* ) */ - + { c_______, c___1___, c1__1__1, @@ -213,7 +213,7 @@ char scnkey[][HEIGHT] = /* this is relatively easy to modify */ c1__1__1, c___1___, c_______ }, /* * */ - + { c_______, c___1___, c___1___, @@ -223,7 +223,7 @@ char scnkey[][HEIGHT] = /* this is relatively easy to modify */ c___1___, c___1___, c_______ }, /* + */ - + { c_______, c_______, c_______, @@ -233,7 +233,7 @@ char scnkey[][HEIGHT] = /* this is relatively easy to modify */ c__1____, c_1_____, c_______ }, /* , */ - + { c_______, c_______, c_______, @@ -243,7 +243,7 @@ char scnkey[][HEIGHT] = /* this is relatively easy to modify */ c_______, c_______, c_______ }, /* - */ - + { c_______, c_______, c_______, diff --git a/usr.sbin/lpr/lpd/printjob.c b/usr.sbin/lpr/lpd/printjob.c index 41f737255e9c..9341c7dedd3c 100644 --- a/usr.sbin/lpr/lpd/printjob.c +++ b/usr.sbin/lpr/lpd/printjob.c @@ -102,7 +102,7 @@ static int tof; /* true if at top of form */ static char class[32]; /* classification field */ static char fromhost[32]; /* user's host machine */ /* indentation size in static characters */ -static char indent[10] = "-i0"; +static char indent[10] = "-i0"; static char jobname[100]; /* job or file name */ static char length[10] = "-l"; /* page length in lines */ static char logname[32]; /* user's login name */ @@ -967,7 +967,7 @@ scan_out(scfd, scsp, dlm) while (*--strp == BACKGND && strp >= outbuf) ; strp++; - *strp++ = '\n'; + *strp++ = '\n'; (void) write(scfd, outbuf, strp-outbuf); } } diff --git a/usr.sbin/lpr/lpd/recvjob.c b/usr.sbin/lpr/lpd/recvjob.c index 67a61830ff29..e199af1acb18 100644 --- a/usr.sbin/lpr/lpd/recvjob.c +++ b/usr.sbin/lpr/lpd/recvjob.c @@ -94,7 +94,7 @@ recvjob() frecverr("unknown printer %s", printer); else if (status == -3) fatal("potential reference loop detected in printcap file"); - + if (cgetstr(bp, "lf", &LF) == -1) LF = _PATH_CONSOLE; if (cgetstr(bp, "sd", &SD) == -1) diff --git a/usr.sbin/lpr/lpr/lpr.c b/usr.sbin/lpr/lpr/lpr.c index 8e9c45f955e4..43c36568663d 100644 --- a/usr.sbin/lpr/lpr/lpr.c +++ b/usr.sbin/lpr/lpr/lpr.c @@ -88,7 +88,7 @@ static int nact; /* number of jobs to act on */ static int ncopies = 1; /* # of copies to make */ static char *person; /* user name */ static int qflag; /* q job, but don't exec daemon */ -static int rflag; /* remove files upon completion */ +static int rflag; /* remove files upon completion */ static int sflag; /* symbolic link flag */ static int tfd; /* control file descriptor */ static char *tfname; /* tmp copy of cf before linking */ @@ -260,7 +260,7 @@ main(argc, argv) fatal2("only %d copies are allowed", MC); /* * Get the identity of the person doing the lpr using the same - * algorithm as lprm. + * algorithm as lprm. */ userid = getuid(); if (userid != DU || person == 0) { @@ -425,7 +425,7 @@ copy(f, n) } } (void) close(fd); - if (nc==0 && nr==0) + if (nc==0 && nr==0) printf("%s: %s: empty input file\n", name, f ? n : "stdin"); else nact++; diff --git a/usr.sbin/lpr/pac/pac.c b/usr.sbin/lpr/pac/pac.c index af0c8ccb12b9..65d3e86064c2 100644 --- a/usr.sbin/lpr/pac/pac.c +++ b/usr.sbin/lpr/pac/pac.c @@ -267,7 +267,7 @@ dumpit() } if (allflag) { printf("\n"); - printf("%-24s %7.2f %4d $%6.2f\n", "total", feet, + printf("%-24s %7.2f %4d $%6.2f\n", "total", feet, runs, feet * price); } } diff --git a/usr.sbin/lpr/runqueue/lpdchar.c b/usr.sbin/lpr/runqueue/lpdchar.c index 4a4f5da1ccbe..c5e11d4aca93 100644 --- a/usr.sbin/lpr/runqueue/lpdchar.c +++ b/usr.sbin/lpr/runqueue/lpdchar.c @@ -163,7 +163,7 @@ char scnkey[][HEIGHT] = /* this is relatively easy to modify */ c_1___1_, c1___1_1, c_____1_ }, /* % */ - + { c_11____, c1__1___, c1___1__, @@ -173,7 +173,7 @@ char scnkey[][HEIGHT] = /* this is relatively easy to modify */ c1___11_, c1___11_, c_111__1 }, /* & */ - + { c___11__, c___11__, c___1___, @@ -183,7 +183,7 @@ char scnkey[][HEIGHT] = /* this is relatively easy to modify */ c_______, c_______, c_______ }, /* ' */ - + { c____1__, c___1___, c__1____, @@ -193,7 +193,7 @@ char scnkey[][HEIGHT] = /* this is relatively easy to modify */ c__1____, c___1___, c____1__ }, /* ( */ - + { c__1____, c___1___, c____1__, @@ -203,7 +203,7 @@ char scnkey[][HEIGHT] = /* this is relatively easy to modify */ c____1__, c___1___, c__1____ }, /* ) */ - + { c_______, c___1___, c1__1__1, @@ -213,7 +213,7 @@ char scnkey[][HEIGHT] = /* this is relatively easy to modify */ c1__1__1, c___1___, c_______ }, /* * */ - + { c_______, c___1___, c___1___, @@ -223,7 +223,7 @@ char scnkey[][HEIGHT] = /* this is relatively easy to modify */ c___1___, c___1___, c_______ }, /* + */ - + { c_______, c_______, c_______, @@ -233,7 +233,7 @@ char scnkey[][HEIGHT] = /* this is relatively easy to modify */ c__1____, c_1_____, c_______ }, /* , */ - + { c_______, c_______, c_______, @@ -243,7 +243,7 @@ char scnkey[][HEIGHT] = /* this is relatively easy to modify */ c_______, c_______, c_______ }, /* - */ - + { c_______, c_______, c_______, diff --git a/usr.sbin/lpr/runqueue/printjob.c b/usr.sbin/lpr/runqueue/printjob.c index 41f737255e9c..9341c7dedd3c 100644 --- a/usr.sbin/lpr/runqueue/printjob.c +++ b/usr.sbin/lpr/runqueue/printjob.c @@ -102,7 +102,7 @@ static int tof; /* true if at top of form */ static char class[32]; /* classification field */ static char fromhost[32]; /* user's host machine */ /* indentation size in static characters */ -static char indent[10] = "-i0"; +static char indent[10] = "-i0"; static char jobname[100]; /* job or file name */ static char length[10] = "-l"; /* page length in lines */ static char logname[32]; /* user's login name */ @@ -967,7 +967,7 @@ scan_out(scfd, scsp, dlm) while (*--strp == BACKGND && strp >= outbuf) ; strp++; - *strp++ = '\n'; + *strp++ = '\n'; (void) write(scfd, outbuf, strp-outbuf); } } |