]> diplodocus.org Git - nmh/blobdiff - sbr/seq_read.c
seq_add.c: Move interface to own file.
[nmh] / sbr / seq_read.c
index 39192605ffd3544b846e1388f2c0cfd6a1e7cdd7..01f5475c6c37c0c18a39f96ed3035b24dd8b6a43 100644 (file)
@@ -6,8 +6,9 @@
  * complete copyright information.
  */
 
-#include <h/mh.h>
-#include <h/utils.h>
+#include "h/mh.h"
+#include "error.h"
+#include "h/utils.h"
 #include "lock_file.h"
 
 /*
@@ -103,7 +104,7 @@ seq_public (struct msgs *mp, int lockflag, int *failed_to_lock)
 
            case BODY:
                lkfclosedata (fp, seqfile);
-               adios (NULL, "no blank lines are permitted in %s", seqfile);
+               die("no blank lines are permitted in %s", seqfile);
                break;
 
            case FILEEOF:
@@ -111,7 +112,7 @@ seq_public (struct msgs *mp, int lockflag, int *failed_to_lock)
 
            default: 
                lkfclosedata (fp, seqfile);
-               adios (NULL, "%s is poorly formatted", seqfile);
+               die("%s is poorly formatted", seqfile);
        }
        break;  /* break from for loop */
     }