X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/18f7f9774c77d7b02268dbac58238964fc26c5a5..8699f1cc0c8db8d3b0d6e7d607f3e92b214ec80f:/sbr/folder_delmsgs.c?ds=sidebyside diff --git a/sbr/folder_delmsgs.c b/sbr/folder_delmsgs.c index 94aa29ce..9addf7cc 100644 --- a/sbr/folder_delmsgs.c +++ b/sbr/folder_delmsgs.c @@ -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 #include +#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); } }