* seq_read.c -- read the .mh_sequence file and
* -- initialize sequence information
*
- * $Id$
- *
* This code is Copyright (c) 2002, by the authors of nmh. See the
* COPYRIGHT file in the root directory of the nmh distribution for
* complete copyright information.
*/
#include <h/mh.h>
+#include <h/utils.h>
/*
* static prototypes
/*
* Get the sequence information for this folder from
- * .mh_sequence (or equivalent specified in .mh_profile)
+ * .mh_sequences (or equivalent specified in .mh_profile)
* or context file (for private sequences).
*/
/* get filename of sequence file */
snprintf (seqfile, sizeof(seqfile), "%s/%s", mp->foldpath, mh_seq);
- if ((fp = fopen (seqfile, "r")) == NULL)
+ if ((fp = lkfopen (seqfile, "r")) == NULL)
return;
/* Use m_getfld to scan sequence file */
break; /* break from for loop */
}
- fclose (fp);
+ lkfclose (fp, seqfile);
}
static int
seq_init (struct msgs *mp, char *name, char *field)
{
- int i, j, k, is_current;
+ unsigned int i;
+ int j, k, is_current;
char *cp, **ap;
/*