]> diplodocus.org Git - nmh/blobdiff - uip/packf.c
Don't cast void pointer return value of malloc() et al.
[nmh] / uip / packf.c
index 94a18eff2697d0930f0493fccb9f7efba862c9d9..4d25c38ee6e018d0a7ebac6d28d3f57d84919fc5 100644 (file)
@@ -8,6 +8,7 @@
 #include <h/mh.h>
 #include <fcntl.h>
 #include <h/dropsbr.h>
+#include "h/done.h"
 #include <h/utils.h>
 #include "sbr/m_maildir.h"
 
@@ -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;