]> diplodocus.org Git - nmh/blobdiff - uip/scansbr.c
Checked return value of write() calls in mhfixmsg.c,
[nmh] / uip / scansbr.c
index c038622e64eae05f8f502a71b3b9e8423b706619..abcb496253dd28d0ae4fe6dd822d9dc2b87a771f 100644 (file)
@@ -277,10 +277,12 @@ body:;
 
            case LENERR: 
            case FMTERR: 
 
            case LENERR: 
            case FMTERR: 
-               fprintf (stderr, 
-                       innum ? "??Format error (message %d) in "
-                             : "??Format error in ",
-                       outnum ? outnum : innum);
+               if (innum)
+                   fprintf (stderr, "??Format error (message %d) in ",
+                            outnum ? outnum : innum);
+               else
+                   fprintf (stderr, "??Format error in ");
+
                fprintf (stderr, "component %d\n", compnum);
 
                if (outnum) {
                fprintf (stderr, "component %d\n", compnum);
 
                if (outnum) {
@@ -389,11 +391,6 @@ scan_detect_mbox_style (FILE *f) {
     m_unknown (&gstate, f);
 }
 
     m_unknown (&gstate, f);
 }
 
-void
-scan_eom_action (int (*action)()) {
-    m_eomsbr (gstate, action);
-}
-
 void
 scan_reset_m_getfld_state () {
     m_getfld_state_reset (&gstate);
 void
 scan_reset_m_getfld_state () {
     m_getfld_state_reset (&gstate);