X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=pager.c;h=9c2d797bd41e1ba9f124ae114767729805f5c9d1;hp=b83eaaf06c0bc26873326837d79631df8da49e05;hb=916e4872caf252a5850e64f79427b9dd7808435d;hpb=98cf5779d8184a74541be1bc61d15c5f35efd310 diff --git a/pager.c b/pager.c index b83eaaf..9c2d797 100644 --- a/pager.c +++ b/pager.c @@ -17,6 +17,7 @@ #include #include #include +#include #include "mutt.h" #include "alias.h" @@ -28,7 +29,6 @@ #include "charset.h" #include "buffy.h" -#include "mx.h" #include @@ -937,11 +937,9 @@ fill_buffer (FILE * f, off_t *last_pos, off_t offset, unsigned char *buf, } #ifdef USE_NNTP -#include "mx.h" -#include "nntp.h" +#include #endif - static int format_line (struct line_t **lineInfo, int n, unsigned char *buf, int flags, ansi_attr * pa, int cnt, int *pspace, int *pvch, int *pcol, int *pspecial) @@ -1428,7 +1426,7 @@ mutt_pager (const char *banner, const char *fname, int flags, pager_t * extra) if (stat (fname, &sb) != 0) { mutt_perror (fname); - fclose (fp); + m_fclose(&fp); return (-1); } unlink (fname); @@ -2561,7 +2559,7 @@ mutt_pager (const char *banner, const char *fname, int flags, pager_t * extra) } } - fclose (fp); + m_fclose(&fp); if (IsHeader (extra)) { Context->msgnotreadyet = -1; if (rc == -1)