summaryrefslogtreecommitdiffstats
path: root/usr.sbin/lpr
diff options
context:
space:
mode:
authorrgrimes <rgrimes@FreeBSD.org>1995-05-30 03:57:47 +0000
committerrgrimes <rgrimes@FreeBSD.org>1995-05-30 03:57:47 +0000
commit4f960dd75f181e9fa2edc44324f15f0ab5c64b37 (patch)
tree15a9c7203efd47ba6dde2896fdb6327dddd4547f /usr.sbin/lpr
parent30ef9631c5eac7f8254bd3d7ad274d34d9f518b8 (diff)
downloadFreeBSD-src-4f960dd75f181e9fa2edc44324f15f0ab5c64b37.zip
FreeBSD-src-4f960dd75f181e9fa2edc44324f15f0ab5c64b37.tar.gz
Remove trailing whitespace.
Diffstat (limited to 'usr.sbin/lpr')
-rw-r--r--usr.sbin/lpr/common_source/common.c2
-rw-r--r--usr.sbin/lpr/common_source/recvjob.c2
-rw-r--r--usr.sbin/lpr/filters/lpf.c4
-rw-r--r--usr.sbin/lpr/lpc/cmds.c8
-rw-r--r--usr.sbin/lpr/lpd/lpdchar.c18
-rw-r--r--usr.sbin/lpr/lpd/printjob.c4
-rw-r--r--usr.sbin/lpr/lpd/recvjob.c2
-rw-r--r--usr.sbin/lpr/lpr/lpr.c6
-rw-r--r--usr.sbin/lpr/pac/pac.c2
-rw-r--r--usr.sbin/lpr/runqueue/lpdchar.c18
-rw-r--r--usr.sbin/lpr/runqueue/printjob.c4
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 49f7939..65714b4 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 67a6183..e199af1 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 5335f31..3bec84d 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 7c2b6fe..193eac5 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 4a4f5da..c5e11d4 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 41f7372..9341c7d 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 67a6183..e199af1 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 8e9c45f..43c3656 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 af0c8cc..65d3e86 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 4a4f5da..c5e11d4 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 41f7372..9341c7d 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);
}
}
OpenPOWER on IntegriCloud