diff options
author | Dan Cross <cross@gajendra.net> | 2020-01-10 14:44:21 +0000 |
---|---|---|
committer | Dan Cross <cross@gajendra.net> | 2020-01-10 14:54:30 +0000 |
commit | fa325e9b42b0bdfb48857d1958d9fb7ceac55151 (patch) | |
tree | 81d26256d152435135bcb1ae43121979a49f5f2b /src/cmd/scat | |
parent | 77a0a5b5194d4441c86de097f2aae297cb75e2c2 (diff) | |
download | plan9port-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/scat')
-rw-r--r-- | src/cmd/scat/display.c | 4 | ||||
-rw-r--r-- | src/cmd/scat/header.c | 1 | ||||
-rw-r--r-- | src/cmd/scat/plot.c | 8 | ||||
-rw-r--r-- | src/cmd/scat/scat.c | 4 | ||||
-rw-r--r-- | src/cmd/scat/sky.h | 2 |
5 files changed, 9 insertions, 10 deletions
diff --git a/src/cmd/scat/display.c b/src/cmd/scat/display.c index 9af012ea..9219ee51 100644 --- a/src/cmd/scat/display.c +++ b/src/cmd/scat/display.c @@ -10,7 +10,7 @@ displaypic(Picture *pic) int p[2]; int i, n; uchar *a; - + if(pipe(p) < 0){ fprint(2, "pipe failed: %r\n"); @@ -58,7 +58,7 @@ displaypic(Picture *pic) void displayimage(Image *im) { - int p[2]; + int p[2]; if(pipe(p) < 0){ fprint(2, "pipe failed: %r\n"); diff --git a/src/cmd/scat/header.c b/src/cmd/scat/header.c index 519d98f9..4cd03d02 100644 --- a/src/cmd/scat/header.c +++ b/src/cmd/scat/header.c @@ -244,4 +244,3 @@ dssmount(int dskno) Bprint(&bout, "not mounting dss\n"); return "/n/dss"; } - diff --git a/src/cmd/scat/plot.c b/src/cmd/scat/plot.c index ade4ac5b..c8c743a5 100644 --- a/src/cmd/scat/plot.c +++ b/src/cmd/scat/plot.c @@ -407,22 +407,22 @@ drawplanet(Image *scr, Planetrec *p, Point pt) } if(strcmp(p->name, "saturn") == 0){ drawdisc(scr, p->semidiam, 1, saturncolor, pt, "S"); - + return; } if(strcmp(p->name, "uranus") == 0){ drawdisc(scr, p->semidiam, 0, uranuscolor, pt, "U"); - + return; } if(strcmp(p->name, "neptune") == 0){ drawdisc(scr, p->semidiam, 0, neptunecolor, pt, "N"); - + return; } if(strcmp(p->name, "pluto") == 0){ drawdisc(scr, p->semidiam, 0, plutocolor, pt, "P"); - + return; } if(strcmp(p->name, "comet") == 0){ diff --git a/src/cmd/scat/scat.c b/src/cmd/scat/scat.c index 35b7e7aa..dff596b1 100644 --- a/src/cmd/scat/scat.c +++ b/src/cmd/scat/scat.c @@ -531,7 +531,7 @@ alpha(char *s, char *t) if(strncmp(s, t, n)==0 && (s[n]<'a' || 'z'<s[n])) return skipbl(s+n); return 0; - + } char* @@ -543,7 +543,7 @@ text(char *s, char *t) if(strncmp(s, t, n)==0 && (s[n]==0 || s[n]==' ' || s[n]=='\t')) return skipbl(s+n); return 0; - + } int diff --git a/src/cmd/scat/sky.h b/src/cmd/scat/sky.h index 6be98145..bc55fbfc 100644 --- a/src/cmd/scat/sky.h +++ b/src/cmd/scat/sky.h @@ -22,7 +22,7 @@ * The BB field is a dreg, and correct only for SAO and NGC. * IC(n) is just NGC(n+7840) * Others should be self-explanatory. - * + * * Records: * * Star is an SAOrec |