X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/a5b2adde414330e1661db05d1ee5b1daeaa2476d..b22bcbc2adddca14cc1889b1eee37643e0b88489:/sbr/folder_delmsgs.c diff --git a/sbr/folder_delmsgs.c b/sbr/folder_delmsgs.c index 9addf7cc..533ab9ba 100644 --- a/sbr/folder_delmsgs.c +++ b/sbr/folder_delmsgs.c @@ -5,8 +5,16 @@ * complete copyright information. */ -#include -#include +#include "h/mh.h" +#include "m_name.h" +#include "seq_save.h" +#include "m_backup.h" +#include "ext_hook.h" +#include "folder_delmsgs.h" +#include "context_save.h" +#include "arglist.h" +#include "error.h" +#include "h/utils.h" #include "m_mktemp.h" /* @@ -60,7 +68,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 +140,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;