fclose -> m_fclose
[apps/madmutt.git] / main.c
diff --git a/main.c b/main.c
index 9a4a3df..3624bb6 100644 (file)
--- a/main.c
+++ b/main.c
 #include <sys/utsname.h>
 
 #include <lib-sys/mutt_signal.h>
-
 #include <lib-mime/mime.h>
-
 #include <lib-ui/curses.h>
+#include <lib-mx/mx.h>
 
 #include "mutt.h"
 #include "alias.h"
-#include "mx.h"
 #include "buffy.h"
 #include "sort.h"
 #include <lib-crypt/crypt.h>
@@ -218,11 +216,6 @@ static void show_version (void)
 #else
          "-USE_SETGID  "
 #endif
-#ifdef USE_DOTLOCK
-         "+USE_DOTLOCK  "
-#else
-         "-USE_DOTLOCK  "
-#endif
 #ifdef USE_FCNTL
          "+USE_FCNTL  "
 #else
@@ -752,7 +745,7 @@ int main (int argc, char **argv)
           if (!option (OPTNOCURSES))
             mutt_endwin (NULL);
           perror (tempfile);
-          fclose (fin);
+          m_fclose(&fin);
           p_delete(&tempfile);
           exit (1);
         }
@@ -760,9 +753,9 @@ int main (int argc, char **argv)
           mutt_copy_stream (fin, fout);
         else if (bodytext)
           fputs (bodytext, fout);
-        fclose (fout);
+        m_fclose(&fout);
         if (fin && fin != stdin)
-          fclose (fin);
+          m_fclose(&fin);
       }
     }