]> diplodocus.org Git - nmh/blobdiff - sbr/folder_delmsgs.c
Added tests of MMDF mailbox format to test-eom-align.
[nmh] / sbr / folder_delmsgs.c
index 94aa29ce0fadfa526beadae9e5cb79e97e686e4b..9addf7cc8f526d682ae107fe3c5526773bf99b58 100644 (file)
@@ -1,6 +1,4 @@
-
-/*
- * folder_delmsgs.c -- "remove" SELECTED messages from a folder
+/* folder_delmsgs.c -- "remove" SELECTED messages from a folder
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -9,6 +7,7 @@
 
 #include <h/mh.h>
 #include <h/utils.h>
+#include "m_mktemp.h"
 
 /*
  * 1) If we are using an external rmmproc, then exec it.
@@ -76,11 +75,11 @@ folder_delmsgs (struct msgs *mp, int unlink_msgs, int nohook)
            execvp (prog, vec);
            fprintf (stderr, "unable to exec ");
            perror (rmmproc);
-           _exit (-1);
+           _exit(1);
 
        default:
            arglist_free(prog, vec);
-           return (pidwait (pid, -1));
+           return pidwait(pid, -1);
        }
     }