** complete copyright information.
*/
+#include <sysexits.h>
+#include <unistd.h>
#include <h/mh.h>
/*
/* unselect message */
unset_selected(mp, msgnum);
- mp->numsel--;
snprintf(msgpath, sizeof (msgpath), "%s/%d",
mp->foldpath, msgnum);
}
/* If removal was successful, decrement message count */
- unset_exists(mp, msgnum);
+ clear_msg_flags(mp, msgnum);
mp->nummsg--;
}
/* Sanity check */
if (mp->numsel != 0)
- adios(NULL, "oops, mp->numsel should be 0");
+ adios(EX_SOFTWARE, NULL, "oops, mp->numsel should be 0");
/* Mark that the sequence information has changed */
mp->msgflags |= SEQMOD;