Move #include from h/mh.h to source files
[mmh] / uip / mhstore.c
index 5b56b09..74442ad 100644 (file)
 #include <fcntl.h>
 #include <h/signals.h>
 #include <errno.h>
-#include <setjmp.h>
 #include <signal.h>
 #include <h/tws.h>
 #include <h/mime.h>
 #include <h/mhparse.h>
 #include <h/utils.h>
+#include <unistd.h>
+#include <sys/stat.h>
+#include <locale.h>
 
 static struct swit switches[] = {
 #define AUTOSW  0
@@ -130,7 +132,9 @@ main(int argc, char **argv)
        CT ct, *ctp;
        FILE *fp;
 
-       atexit(freects_done);
+       if (atexit(freects_done) != 0) {
+               adios(NULL, "atexit failed");
+       }
 
        setlocale(LC_ALL, "");
        invo_name = mhbasename(argv[0]);