]> diplodocus.org Git - nmh/blobdiff - uip/scansbr.c
sbr/mts.c: Delete mmdlm2; use same-valued mmdlm1 instead.
[nmh] / uip / scansbr.c
index 715357bc85fe0ed9d80885eb392980601c8ed0c4..569991ec8ee569f81540d6fea3af3e606bf46ab8 100644 (file)
@@ -59,7 +59,7 @@ scan (FILE *inb, int innum, int outnum, char *nfs, int width, int curflg,
            width = INT_MAX;
        }
        dat[3] = slwidth = width;
-       *scanl = charstring_create (width < NMH_BUFSIZ ? width : NMH_BUFSIZ);
+        *scanl = charstring_create (min(width, NMH_BUFSIZ));
        if (outnum)
            umask(~m_gmprot());
 
@@ -260,7 +260,7 @@ body:;
                    state = BODY;
                    goto body;
                }
-               /* FALLTHRU */
+               goto finished;
 
            case FILEEOF:
                goto finished;
@@ -336,7 +336,7 @@ finished:
 
 /* The following two functions allow access to the global gstate above. */
 void
-scan_finished () {
+scan_finished(void) {
     m_getfld_state_destroy (&gstate);
 }