projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Backport fix from trunk for SASL bug.
[mmh]
/
uip
/
mhmail.c
diff --git
a/uip/mhmail.c
b/uip/mhmail.c
index
f9dc33b
..
f08a583
100644
(file)
--- a/
uip/mhmail.c
+++ b/
uip/mhmail.c
@@
-3,10
+3,15
@@
* mhmail.c -- simple mail program
*
* $Id$
* mhmail.c -- simple mail program
*
* $Id$
+ *
+ * This code is Copyright (c) 2002, by the authors of nmh. See the
+ * COPYRIGHT file in the root directory of the nmh distribution for
+ * complete copyright information.
*/
#include <h/mh.h>
#include <h/signals.h>
*/
#include <h/mh.h>
#include <h/signals.h>
+#include <h/utils.h>
#include <signal.h>
static struct swit switches[] = {
#include <signal.h>
static struct swit switches[] = {
@@
-21,7
+26,7
@@
static struct swit switches[] = {
#define VERSIONSW 4
{ "version", 0 },
#define HELPSW 5
#define VERSIONSW 4
{ "version", 0 },
#define HELPSW 5
- { "help", 4 },
+ { "help", 0 },
#define RESNDSW 6
{ "resent", -6 },
#define QUEUESW 7
#define RESNDSW 6
{ "resent", -6 },
#define QUEUESW 7
@@
-168,7
+173,7
@@
main (int argc, char **argv)
if (child_id == NOTOK) {
/* report failure and then send it */
if (child_id == NOTOK) {
/* report failure and then send it */
- admonish (NULL, "unable to fork");
+ adios (NULL, "unable to fork");
} else if (child_id) {
/* parent process */
if ((status = pidXwait(child_id, postproc))) {
} else if (child_id) {
/* parent process */
if ((status = pidXwait(child_id, postproc))) {
@@
-187,6
+192,8
@@
main (int argc, char **argv)
perror (postproc);
_exit (-1);
}
perror (postproc);
_exit (-1);
}
+
+ return 0; /* dead code to satisfy the compiler */
}
}