Renamed -version switch to -Version to remove the conflict with -verbose.
[mmh] / uip / msgchk.c
index 5b75814..dfbdd69 100644 (file)
@@ -7,7 +7,6 @@
 */
 
 #include <h/mh.h>
-#include <h/mts.h>
 #include <h/tws.h>
 #include <pwd.h>
 
@@ -21,9 +20,10 @@ static struct swit switches[] = {
 #define NNOTESW  3
        { "nonotify type", 0 },
 #define VERSIONSW  4
-       { "version", 0 },
+       { "Version", 0 },
 #define HELPSW  5
        { "help", 0 },
+       { NULL, 0 },
 };
 
 /*
@@ -32,7 +32,6 @@ static struct swit switches[] = {
 */
 #define MAXVEC  51
 
-#define NT_NONE  0x0
 #define NT_MAIL  0x1
 #define NT_NMAI  0x2
 #define NT_ALL   (NT_MAIL | NT_NMAI)
@@ -69,7 +68,6 @@ main(int argc, char **argv)
        /* read user profile/context */
        context_read();
 
-       mts_init(invo_name);
        user = getusername();
 
        arguments = getarguments(invo_name, argc, argv, 1);
@@ -234,7 +232,7 @@ checkmail(char *user, int datesw, int notifysw, int personal)
 
        if (notifysw) {
                if (datesw && st.st_atime) {
-                       printf("; last read on %s", dtime(&st.st_atime, 1));
+                       printf("; last read on %s", dtime(&st.st_atime));
                }
                printf("\n");
        }