X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fwmh.c;h=cd1ffaa9614fef7540a60ae7985c8f8ec3a7f5fa;hb=ac79e8d6a1a8a3cb3fb2438b03d3d0ba5ea2570d;hp=fce1f59b805ea72e10c9526f4d9f528c692fb41f;hpb=1691e80890e5d8ba258c51c214a3e91880e1db2b;p=mmh diff --git a/uip/wmh.c b/uip/wmh.c index fce1f59..cd1ffaa 100644 --- a/uip/wmh.c +++ b/uip/wmh.c @@ -40,7 +40,7 @@ static struct swit switches[] = { #define VERSIONSW 3 { "version", 0 }, #define HELPSW 4 - { "help", 4 }, + { "help", 0 }, { NULL, NULL } }; /* PEERS */ @@ -200,7 +200,7 @@ main (int argc, char **argv) vmh (); - done (0); + return done (0); } @@ -1285,7 +1285,7 @@ SIGser (int sig) } -void +int done (int status) { if (dfd != NOTOK) @@ -1294,6 +1294,7 @@ done (int status) pFIN (); exit (status); + return 1; /* dead code to satisfy the compiler */ }