]> diplodocus.org Git - nmh/blobdiff - sbr/fmt_compile.c
Added tests of MMDF mailbox format to test-eom-align.
[nmh] / sbr / fmt_compile.c
index d25c3bbb35fcb1301f649586f678eb9b10393fe2..2ad46cf57e9d7efe13c8b4d1ba6d06359e5641fa 100644 (file)
@@ -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;