]> diplodocus.org Git - nmh/blobdiff - uip/rcvdist.c
Replace `sizeof (char)' with 1, then remove if a multiplier.
[nmh] / uip / rcvdist.c
index 35bbfb7cbbcb201487c4d7cf8d9a5f1499a93694..bf301cc2d1e1af0140987e423256d6d9baf4bfbf 100644 (file)
@@ -10,8 +10,9 @@
 #include <h/rcvmail.h>
 #include <h/tws.h>
 #include <h/mts.h>
+#include "h/done.h"
 #include <h/utils.h>
-#include "../sbr/m_mktemp.h"
+#include "sbr/m_mktemp.h"
 
 #define RCVDIST_SWITCHES \
     X("form formfile", 4, FORMSW) \
@@ -49,7 +50,7 @@ main (int argc, char **argv)
 
     if (nmh_init(argv[0], 2)) { return 1; }
 
-    done=unlink_done;
+    set_done(unlink_done);
 
     /*
      * Configure this now, since any unknown switches to rcvdist get
@@ -127,8 +128,8 @@ main (int argc, char **argv)
     child_id = fork();
     switch (child_id) {
        case NOTOK: 
-           inform("unable to fork, continuing...");
-           /* FALLTHRU */
+            adios("fork", "failed:");
+
        case OK: 
            execvp (program, vec);
            fprintf (stderr, "unable to exec ");