From fa325e9b42b0bdfb48857d1958d9fb7ceac55151 Mon Sep 17 00:00:00 2001 From: Dan Cross Date: Fri, 10 Jan 2020 14:44:21 +0000 Subject: 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 --- src/cmd/scat/display.c | 4 ++-- src/cmd/scat/header.c | 1 - src/cmd/scat/plot.c | 8 ++++---- src/cmd/scat/scat.c | 4 ++-- src/cmd/scat/sky.h | 2 +- 5 files changed, 9 insertions(+), 10 deletions(-) (limited to 'src/cmd/scat') 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'