projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed bug in marking a range; modified markall() to only mark messages
[unix-history]
/
usr
/
src
/
usr.bin
/
mail
/
cmd3.c
diff --git
a/usr/src/usr.bin/mail/cmd3.c
b/usr/src/usr.bin/mail/cmd3.c
index
28ceb1d
..
3f1d112
100644
(file)
--- a/
usr/src/usr.bin/mail/cmd3.c
+++ b/
usr/src/usr.bin/mail/cmd3.c
@@
-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();
}