projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* mh_xmalloc(), mh_xrealloc(), pwd(): Add comments describing the purpose
[mmh]
/
uip
/
vmh.c
diff --git
a/uip/vmh.c
b/uip/vmh.c
index
8b398e6
..
327f451
100644
(file)
--- a/
uip/vmh.c
+++ b/
uip/vmh.c
@@
-3,6
+3,10
@@
* vmh.c -- visual front-end to nmh
*
* $Id$
* vmh.c -- visual front-end to nmh
*
* $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/mh.h>
@@
-106,7
+110,7
@@
static struct swit switches[] = {
#define VERSIONSW 3
{ "version", 0 },
#define HELPSW 4
#define VERSIONSW 3
{ "version", 0 },
#define HELPSW 4
- { "help", 4 },
+ { "help", 0 },
{ NULL, 0 }
};
{ NULL, 0 }
};
@@
-199,7
+203,6
@@
static RETSIGTYPE TSTPser(int);
/* MISCELLANY */
/* MISCELLANY */
-extern int errno;
/*
* static prototypes
/*
* static prototypes
@@
-278,7
+281,7
@@
main (int argc, char **argv)
vmh ();
vmh ();
- done (0);
+ return done (0);
}
}
@@
-1432,13
+1435,14
@@
TSTPser (int sig)
/* MISCELLANY */
/* MISCELLANY */
-void
+int
done (int status)
{
TTYoff ();
pFIN ();
exit (status);
done (int status)
{
TTYoff ();
pFIN ();
exit (status);
+ return 1; /* dead code to satisfy the compiler */
}
}