X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fvmh.c;h=327f4516738b7580820bb7ee758e770224faffea;hp=8b398e6053ba0f5232aada9f29292c7ba33b78d3;hb=d8916ff5d389de5ab225cd6f40aeda1b285d0f28;hpb=1691e80890e5d8ba258c51c214a3e91880e1db2b diff --git a/uip/vmh.c b/uip/vmh.c index 8b398e6..327f451 100644 --- a/uip/vmh.c +++ b/uip/vmh.c @@ -3,6 +3,10 @@ * 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 @@ -106,7 +110,7 @@ static struct swit switches[] = { #define VERSIONSW 3 { "version", 0 }, #define HELPSW 4 - { "help", 4 }, + { "help", 0 }, { NULL, 0 } }; @@ -199,7 +203,6 @@ static RETSIGTYPE TSTPser(int); /* MISCELLANY */ -extern int errno; /* * static prototypes @@ -278,7 +281,7 @@ main (int argc, char **argv) vmh (); - done (0); + return done (0); } @@ -1432,13 +1435,14 @@ TSTPser (int sig) /* MISCELLANY */ -void +int done (int status) { TTYoff (); pFIN (); exit (status); + return 1; /* dead code to satisfy the compiler */ }