]> diplodocus.org Git - nmh/blobdiff - uip/packf.c
Don't cast void pointer return value of malloc() et al.
[nmh] / uip / packf.c
index 2424c97c4e4d52dd85984ed72c5fe5add9ef222a..4d25c38ee6e018d0a7ebac6d28d3f57d84919fc5 100644 (file)
@@ -8,8 +8,9 @@
 #include <h/mh.h>
 #include <fcntl.h>
 #include <h/dropsbr.h>
+#include "h/done.h"
 #include <h/utils.h>
-#include "../sbr/m_maildir.h"
+#include "sbr/m_maildir.h"
 
 #define PACKF_SWITCHES \
     X("file name", 0, FILESW) \
@@ -46,7 +47,7 @@ main (int argc, char **argv)
 
     if (nmh_init(argv[0], 1)) { return 1; }
 
-    done=mbxclose_done;
+    set_done(mbxclose_done);
 
     arguments = getarguments (invo_name, argc, argv, 1);
     argp = arguments;