]> diplodocus.org Git - nmh/blobdiff - uip/scansbr.c
Apparently on Linux if a slave pty is closed, instead of the master
[nmh] / uip / scansbr.c
index 715357bc85fe0ed9d80885eb392980601c8ed0c4..7d81b5138a33efecf5aac149b39a757b4fc9f2f0 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());
 
@@ -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);
 }