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/eqn/text.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cmd/eqn/text.c') diff --git a/src/cmd/eqn/text.c b/src/cmd/eqn/text.c index c016cca0..4ca0bbd9 100644 --- a/src/cmd/eqn/text.c +++ b/src/cmd/eqn/text.c @@ -193,7 +193,7 @@ trans(int c, char *p1) cadd(c); psp++; } else { - cadd(c); + cadd(c); } return f; case '-': @@ -263,7 +263,7 @@ char *pad(int n) /* return the padding as a string */ if (n < 0) { sprintf(buf, "\\h'-%du*\\w'\\^'u'", -n); return buf; - } + } for ( ; n > 1; n -= 2) strcat(buf, "\\|"); if (n > 0) -- 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/eqn/text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmd/eqn/text.c') diff --git a/src/cmd/eqn/text.c b/src/cmd/eqn/text.c index 4ca0bbd9..6e2c8325 100644 --- a/src/cmd/eqn/text.c +++ b/src/cmd/eqn/text.c @@ -257,7 +257,7 @@ trans(int c, char *p1) char *pad(int n) /* return the padding as a string */ { - static char buf[20]; + static char buf[30]; buf[0] = 0; if (n < 0) { -- cgit v1.2.3