aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/lp
diff options
context:
space:
mode:
authorDan Cross <cross@gajendra.net>2020-01-10 14:44:21 +0000
committerDan Cross <cross@gajendra.net>2020-01-10 14:54:30 +0000
commitfa325e9b42b0bdfb48857d1958d9fb7ceac55151 (patch)
tree81d26256d152435135bcb1ae43121979a49f5f2b /src/cmd/lp
parent77a0a5b5194d4441c86de097f2aae297cb75e2c2 (diff)
downloadplan9port-fa325e9b42b0bdfb48857d1958d9fb7ceac55151.tar.gz
plan9port-fa325e9b42b0bdfb48857d1958d9fb7ceac55151.tar.bz2
plan9port-fa325e9b42b0bdfb48857d1958d9fb7ceac55151.zip
Trivial changes: whitespace and modes.
Remote whitespace at the ends of lines. Remove blank lines from the ends of files. Change modes on source files so that they are not executable. Signed-off-by: Dan Cross <cross@gajendra.net>
Diffstat (limited to 'src/cmd/lp')
-rw-r--r--src/cmd/lp/ipcopen.c2
-rw-r--r--src/cmd/lp/lpdsend.c4
-rw-r--r--src/cmd/lp/lpsend.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/cmd/lp/ipcopen.c b/src/cmd/lp/ipcopen.c
index 666f64c4..a07858a8 100644
--- a/src/cmd/lp/ipcopen.c
+++ b/src/cmd/lp/ipcopen.c
@@ -78,7 +78,7 @@ pass(int from, int to)
{
char buf[1024];
int ppid, cpid;
- int n, tot = 0;
+ int n, tot = 0;
while ((n=read(from, buf, sizeof(buf))) > 0) {
if (n==1 && tot==0 && *buf=='\0')
diff --git a/src/cmd/lp/lpdsend.c b/src/cmd/lp/lpdsend.c
index 0dc70259..363d9501 100644
--- a/src/cmd/lp/lpdsend.c
+++ b/src/cmd/lp/lpdsend.c
@@ -289,7 +289,7 @@ main(int argc, char *argv[]) {
if (statflag) {
fprintf(stderr, "cannot have both -k and -q flags\n");
exit(1);
- }
+ }
killflag = 1;
killarg = optarg;
break;
@@ -297,7 +297,7 @@ main(int argc, char *argv[]) {
if (killflag) {
fprintf(stderr, "cannot have both -q and -k flags\n");
exit(1);
- }
+ }
statflag = 1;
break;
case 's':
diff --git a/src/cmd/lp/lpsend.c b/src/cmd/lp/lpsend.c
index 4893f452..bcdcfdbb 100644
--- a/src/cmd/lp/lpsend.c
+++ b/src/cmd/lp/lpsend.c
@@ -154,7 +154,7 @@ pass(int inpfd, int outfd, int bsize)
alarm(0);
return(bcnt);
}
-
+
/* get whatever stdin has and put it into the temporary file.
* return the file size.
*/