X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fseq_read.c;h=e3491218a956891733057f9a4838e0f670450197;hb=4dd01e6c68874a5fc2988d63d6c26984889310a3;hp=d085d53d440f89d7b175a74b910a61a59d3f30f3;hpb=5afa7072e3fe7fc42287e2149e1c23b363700795;p=mmh diff --git a/sbr/seq_read.c b/sbr/seq_read.c index d085d53..e349121 100644 --- a/sbr/seq_read.c +++ b/sbr/seq_read.c @@ -3,14 +3,13 @@ * 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 +#include /* * static prototypes @@ -22,7 +21,7 @@ static void seq_private (struct msgs *); /* * 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). */ @@ -73,7 +72,7 @@ seq_public (struct msgs *mp) /* 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 */ @@ -111,7 +110,7 @@ seq_public (struct msgs *mp) break; /* break from for loop */ } - fclose (fp); + lkfclose (fp, seqfile); }