X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/5c01446c027960e00b33f623212de645475569aa..8699f1cc0c8db8d3b0d6e7d607f3e92b214ec80f:/sbr/fmt_compile.c diff --git a/sbr/fmt_compile.c b/sbr/fmt_compile.c index d25c3bbb..2ad46cf5 100644 --- a/sbr/fmt_compile.c +++ b/sbr/fmt_compile.c @@ -35,7 +35,7 @@ * * - Add code to fmttest.c to display your new function. * - * - Document the new function in the mh-format(5) man page. + * - Document the new function in mh-format(5). * */ @@ -352,7 +352,7 @@ lookup(char *name) while ((nm = t->name)) { if (*nm == c && strcmp (nm, name) == 0) - return (ftbl = t); + return ftbl = t; t++; } @@ -488,9 +488,7 @@ do_spec(char *sp) { char *cp = sp; int c; -#ifndef lint int ljust = 0; -#endif /* not lint */ int wid = 0; char fill = ' '; @@ -856,7 +854,7 @@ do_if(char *sp) { char *cp = sp; struct format *fexpr, - *fif = (struct format *)NULL; + *fif = NULL; int c = '<'; for (;;) { @@ -897,7 +895,7 @@ do_if(char *sp) fif = fp; /* loc of GOTO */ fexpr->f_skip = next_fp - fexpr; - fexpr = (struct format *)NULL;/* no extra ENDIF */ + fexpr = NULL; /* no extra ENDIF */ cp = compile (cp); /* compile ELSE stmts */ fif->f_skip = next_fp - fif;