From 86fa0d22778563378cd6fb422014aa37aa762d95 Mon Sep 17 00:00:00 2001 From: rsc Date: Tue, 20 Apr 2004 02:21:12 +0000 Subject: final tweaks for tonight. --- src/cmd/plot/libplot/subr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cmd/plot') diff --git a/src/cmd/plot/libplot/subr.c b/src/cmd/plot/libplot/subr.c index 886659fa..48078ed6 100644 --- a/src/cmd/plot/libplot/subr.c +++ b/src/cmd/plot/libplot/subr.c @@ -14,7 +14,7 @@ struct penvir *e0 = E, *e1 = &E[1], *esave; int bcolor(char *s){ int c; - while (*s != NULL) { + while (*s != 0) { switch (*s) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': @@ -50,7 +50,7 @@ print("RED"); e1->pslant = (180. - atof(s + 1)) / RADIAN; return(-1); } - while (*++s != NULL) + while (*++s != 0) if (*s == '/') { s++; break; -- cgit v1.2.3