Fixed bug in marking a range; modified markall() to only mark messages
[unix-history] / usr / src / usr.bin / mail / cmd3.c
index 28ceb1d..3f1d112 100644 (file)
@@ -9,7 +9,7 @@
  * Still more user commands.
  */
 
  * Still more user commands.
  */
 
-static char *SccsId = "@(#)cmd3.c      2.7 %G%";
+static char *SccsId = "@(#)cmd3.c      2.9 %G%";
 
 /*
  * Process a shell escape by saving signals, ignoring signals,
 
 /*
  * Process a shell escape by saving signals, ignoring signals,
@@ -321,7 +321,7 @@ messize(msgvec)
        for (ip = msgvec; *ip != NULL; ip++) {
                mesg = *ip;
                mp = &message[mesg-1];
        for (ip = msgvec; *ip != NULL; ip++) {
                mesg = *ip;
                mp = &message[mesg-1];
-               printf("%d: %d\n", mesg, msize(mp));
+               printf("%d: %ld\n", mesg, mp->m_size);
        }
        return(0);
 }
        }
        return(0);
 }
@@ -552,8 +552,10 @@ file(argv)
        cp = getfilename(argv[0], &edit);
        if (cp == NOSTR)
                return(-1);
        cp = getfilename(argv[0], &edit);
        if (cp == NOSTR)
                return(-1);
-       if (setfile(cp, edit))
+       if (setfile(cp, edit)) {
+               perror(cp);
                return(-1);
                return(-1);
+       }
        newfileinfo();
 }
 
        newfileinfo();
 }