Move #include from h/mh.h to source files
[mmh] / sbr / fmt_compile.c
index 435740e..d299efc 100644 (file)
@@ -43,6 +43,7 @@
 #include <h/tws.h>
 #include <h/fmt_scan.h>
 #include <h/fmt_compile.h>
+#include <ctype.h>
 
 #ifdef HAVE_SYS_TIME_H
 # include <sys/time.h>
@@ -289,7 +290,7 @@ compile_error(char *str, char *cp)
        }
 
        advise(NULL, "\"%s\": format compile error - %s",
-                  &usr_fstring[errpos-errctx], str);
+                       &usr_fstring[errpos-errctx], str);
        adios(NULL, "%*s", errctx+1, "^");
 }
 
@@ -302,7 +303,7 @@ int
 fmt_compile(char *fstring, struct format **fmt)
 {
        register char *cp;
-       int i;
+       size_t i;
 
        if (format_string)
                free(format_string);
@@ -409,9 +410,7 @@ do_spec(char *sp)
 {
        register char *cp = sp;
        register int c;
-#ifndef lint
        register int ljust = 0;
-#endif /* not lint */
        register int wid = 0;
        register char fill = ' ';