Add/update copyright notice in all source code files.
[mmh] / uip / pick.c
index d2f72ef..65a9091 100644 (file)
@@ -3,10 +3,14 @@
  * pick.c -- search for messages by content
  *
  * $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 <zotnet/tws/tws.h>
+#include <h/tws.h>
 #include <h/picksbr.h>
 
 /*
@@ -64,7 +68,7 @@ static struct swit switches[] = {
 #define VERSIONSW              22
     { "version", 0 },
 #define        HELPSW                 23
-    { "help", 4 },
+    { "help", 0 },
     { NULL, 0 }
 };
 
@@ -303,14 +307,15 @@ main (int argc, char **argv)
     seq_save (mp);                     /* synchronize message sequences */
     context_save ();                   /* save the context file         */
     folder_free (mp);                  /* free folder/message structure */
-    done (0);
+    return done (0);
 }
 
 
-void
+int
 done (int status)
 {
     if (listsw && status && !isatty (fileno (stdout)))
        printf ("0\n");
     exit (status);
+    return 1;  /* dead code to satisfy the compiler */
 }