* complete copyright information.
*/
-#include <h/mh.h>
-#include <h/utils.h>
+#include "h/mh.h"
+#include "seq_read.h"
+#include "m_atoi.h"
+#include "folder_read.h"
+#include "error.h"
+#include "h/utils.h"
+#include "m_maildir.h"
/* We allocate the `mi' array 1024 elements at a time */
#define NUMMSGS 1024
* name of the messages in this folder.
*/
len = NUMMSGS;
- mi = (int *) mh_xmalloc ((size_t) (len * sizeof(*mi)));
+ mi = mh_xmalloc ((size_t) (len * sizeof(*mi)));
while ((dp = readdir (dd))) {
if ((msgnum = m_atoi (dp->d_name)) && msgnum > 0) {
*/
if (mp->nummsg >= len) {
len += NUMMSGS;
- mi = (int *) mh_xrealloc (mi, (size_t) (len * sizeof(*mi)));
+ mi = mh_xrealloc (mi, (size_t) (len * sizeof(*mi)));
}
/* Check if this is the first message we've seen */
*/
if (mp->hghoff < mp->lowoff) {
- adios(NULL, "Internal failure: high message limit < low message "
+ die("Internal failure: high message limit < low message "
"limit; possible overflow?");
}