]> diplodocus.org Git - nmh/blobdiff - uip/scansbr.c
uip: Replace some ints that are only ever 0 or 1 with bool.
[nmh] / uip / scansbr.c
index bbc5a1680b3dddfce48be5843e30dff2b08d4e6e..116469815abd6f2e8848cef1aa49ddd7828bee4e 100644 (file)
@@ -11,7 +11,7 @@
 #include <h/scansbr.h>
 #include <h/tws.h>
 #include <h/utils.h>
-#include "../sbr/terminal.h"
+#include "sbr/terminal.h"
 
 static struct format *fmt;
 static struct comp *datecomp;          /* pntr to "date" comp             */
@@ -284,7 +284,7 @@ body:;
                goto finished;
 
            default: 
-               adios (NULL, "getfld() returned %d", state);
+               die("getfld() returned %d", state);
        }
     }
 
@@ -348,7 +348,7 @@ finished:
     if (scnout && (ferror(scnout) || fclose (scnout) == EOF))
        DIEWRERR();
 
-    return (state != FILEEOF ? SCNERR : encrypted ? SCNENC : SCNMSG);
+    return state != FILEEOF ? SCNERR : encrypted ? SCNENC : SCNMSG;
 }