X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/159b2a1ede7bd581508e8704112d83efd44e0dfa..94187a80bd60baab4b9c4b949ad820d730578123:/sbr/folder_read.c diff --git a/sbr/folder_read.c b/sbr/folder_read.c index eab1e1f4..1129bab0 100644 --- a/sbr/folder_read.c +++ b/sbr/folder_read.c @@ -7,6 +7,7 @@ #include #include +#include "m_maildir.h" /* We allocate the `mi' array 1024 elements at a time */ #define NUMMSGS 1024 @@ -58,7 +59,7 @@ folder_read (char *name, int lockflag) * 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) { @@ -68,7 +69,7 @@ folder_read (char *name, int lockflag) */ 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 */