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/pic/arcgen.c | 1 - src/cmd/pic/linegen.c | 2 +- src/cmd/pic/misc.c | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) (limited to 'src/cmd/pic') diff --git a/src/cmd/pic/arcgen.c b/src/cmd/pic/arcgen.c index bec41e47..4cb16957 100644 --- a/src/cmd/pic/arcgen.c +++ b/src/cmd/pic/arcgen.c @@ -221,4 +221,3 @@ quadrant(double x, double y) else if( x> 0.0 && y<=0.0) return(4); else return 0; /* shut up lint */ } - diff --git a/src/cmd/pic/linegen.c b/src/cmd/pic/linegen.c index e0db5fc6..bc7e9335 100644 --- a/src/cmd/pic/linegen.c +++ b/src/cmd/pic/linegen.c @@ -225,7 +225,7 @@ obj *linegen(int type) extreme(ex, ey); nx = xi; ny = yi; } - + } p->o_ddval = ddval; if (dbg) { diff --git a/src/cmd/pic/misc.c b/src/cmd/pic/misc.c index e888fafc..1e2db1b5 100644 --- a/src/cmd/pic/misc.c +++ b/src/cmd/pic/misc.c @@ -34,7 +34,7 @@ curdir(void) /* convert current dir (hvmode) to RIGHT, LEFT, etc. */ return 0; } -double +double getcomp(obj *p, int t) /* return component of a position */ { switch (t) { -- cgit v1.2.3 From fafa622a5bdf71adfbb4334541c3b65f29c89ca9 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Sun, 12 Jan 2020 15:05:40 -0500 Subject: all: fix or silence various gcc warnings As usual, gcc finds some real problems but also reports a ton of noise. Fix the problems and quiet the noise. --- src/cmd/pic/input.c | 2 +- src/cmd/pic/pic.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cmd/pic') diff --git a/src/cmd/pic/input.c b/src/cmd/pic/input.c index a81f622e..92e8d62d 100644 --- a/src/cmd/pic/input.c +++ b/src/cmd/pic/input.c @@ -435,7 +435,7 @@ double errcheck(double x, char *s) return x; } -char errbuf[200]; +char errbuf[1000]; void eprint(void); diff --git a/src/cmd/pic/pic.h b/src/cmd/pic/pic.h index 928d38dd..cdaf71e5 100644 --- a/src/cmd/pic/pic.h +++ b/src/cmd/pic/pic.h @@ -9,7 +9,7 @@ extern void yyerror(char *); -extern char errbuf[200]; +extern char errbuf[1000]; #undef sprintf /* Snow Leopard */ -- cgit v1.2.3