X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fwmh.c;h=af06698d2928aedba1bf9c9ddf6f191a32e4d971;hp=fce1f59b805ea72e10c9526f4d9f528c692fb41f;hb=d8916ff5d389de5ab225cd6f40aeda1b285d0f28;hpb=1691e80890e5d8ba258c51c214a3e91880e1db2b diff --git a/uip/wmh.c b/uip/wmh.c index fce1f59..af06698 100644 --- a/uip/wmh.c +++ b/uip/wmh.c @@ -3,6 +3,10 @@ * wmh.c -- window 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. */ /* @@ -40,7 +44,7 @@ static struct swit switches[] = { #define VERSIONSW 3 { "version", 0 }, #define HELPSW 4 - { "help", 4 }, + { "help", 0 }, { NULL, NULL } }; /* PEERS */ @@ -124,7 +128,6 @@ static struct tchars tc; #define WERASC ltc.t_werasc static struct ltchars ltc; -extern int errno; int ALRMser (), PIPEser (), SIGser (); int ADJser (), REFser (); @@ -200,7 +203,7 @@ main (int argc, char **argv) vmh (); - done (0); + return done (0); } @@ -1285,7 +1288,7 @@ SIGser (int sig) } -void +int done (int status) { if (dfd != NOTOK) @@ -1294,6 +1297,7 @@ done (int status) pFIN (); exit (status); + return 1; /* dead code to satisfy the compiler */ }