X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/a5b2adde414330e1661db05d1ee5b1daeaa2476d..b3d4a4452c332fc3550db3fbdf9e02027b41e985:/sbr/folder_delmsgs.c?ds=inline diff --git a/sbr/folder_delmsgs.c b/sbr/folder_delmsgs.c index 9addf7cc..f9d7f591 100644 --- a/sbr/folder_delmsgs.c +++ b/sbr/folder_delmsgs.c @@ -5,8 +5,10 @@ * complete copyright information. */ -#include -#include +#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;