]> diplodocus.org Git - nmh/blobdiff - sbr/folder_delmsgs.c
print_sw.c: Move interface to own file.
[nmh] / sbr / folder_delmsgs.c
index 9addf7cc8f526d682ae107fe3c5526773bf99b58..f9d7f591d5a11172ddabff385507a20130af6765 100644 (file)
@@ -5,8 +5,10 @@
  * complete copyright information.
  */
 
-#include <h/mh.h>
-#include <h/utils.h>
+#include "h/mh.h"
+#include "arglist.h"
+#include "error.h"
+#include "h/utils.h"
 #include "m_mktemp.h"
 
 /*
@@ -60,7 +62,7 @@ folder_delmsgs (struct msgs *mp, int unlink_msgs, int nohook)
        for (msgnum = mp->lowsel; msgnum <= mp->hghsel; msgnum++) {
            if (is_selected (mp, msgnum) &&
                !(vec[vecp++] = strdup (m_name (msgnum))))
-               adios (NULL, "strdup failed");
+               die("strdup failed");
        }
        vec[vecp] = NULL;
 
@@ -132,7 +134,7 @@ folder_delmsgs (struct msgs *mp, int unlink_msgs, int nohook)
 
     /* Sanity check */
     if (mp->numsel != 0)
-       adios (NULL, "oops, mp->numsel should be 0");
+       die("oops, mp->numsel should be 0");
 
     /* Mark that the sequence information has changed */
     mp->msgflags |= SEQMOD;