Whoever originally added the -help switch to all the commands got too cute and
[mmh] / uip / mhtest.c
index 80a0c7b..4bc9245 100644 (file)
@@ -52,7 +52,7 @@ static struct swit switches[] = {
 #define VERSIONSW              10
     { "version", 0 },
 #define        HELPSW                 11
-    { "help", 4 },
+    { "help", 0 },
 
 /*
  * switches for debugging
@@ -386,8 +386,7 @@ do_cache:
        context_save ();                  /* save the context file  */
     }
 
-    done (0);
-    /* NOTREACHED */
+    return done (0);
 }
 
 
@@ -421,7 +420,7 @@ pipeser (int i)
 }
 
 
-void
+int
 done (int status)
 {
     CT *ctp;
@@ -431,4 +430,5 @@ done (int status)
            free_content (*ctp);
 
     exit (status);
+    return 1;  /* dead code to satisfy the compiler */
 }