projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mhl and mhbuild ignore to long lines
[mmh]
/
sbr
/
folder_delmsgs.c
diff --git
a/sbr/folder_delmsgs.c
b/sbr/folder_delmsgs.c
index
0ecf382
..
b145e0b
100644
(file)
--- a/
sbr/folder_delmsgs.c
+++ b/
sbr/folder_delmsgs.c
@@
-6,6
+6,7
@@
** complete copyright information.
*/
** complete copyright information.
*/
+#include <sysexits.h>
#include <unistd.h>
#include <h/mh.h>
#include <unistd.h>
#include <h/mh.h>
@@
-27,7
+28,6
@@
folder_delmsgs(struct msgs *mp, int hook)
/* unselect message */
unset_selected(mp, msgnum);
/* unselect message */
unset_selected(mp, msgnum);
- mp->numsel--;
snprintf(msgpath, sizeof (msgpath), "%s/%d",
mp->foldpath, msgnum);
snprintf(msgpath, sizeof (msgpath), "%s/%d",
mp->foldpath, msgnum);
@@
-45,13
+45,13
@@
folder_delmsgs(struct msgs *mp, int hook)
}
/* If removal was successful, decrement message count */
}
/* If removal was successful, decrement message count */
- unset_exists(mp, msgnum);
+ clear_msg_flags(mp, msgnum);
mp->nummsg--;
}
/* Sanity check */
if (mp->numsel != 0)
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;
/* Mark that the sequence information has changed */
mp->msgflags |= SEQMOD;