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
Added declaration of icequal();
[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
..
e027207
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.
10
%G%";
/*
* Process a shell escape by saving signals, ignoring signals,
/*
* Process a shell escape by saving signals, ignoring signals,
@@
-149,7
+149,7
@@
help()
register FILE *f;
if ((f = fopen(HELPFILE, "r")) == NULL) {
register FILE *f;
if ((f = fopen(HELPFILE, "r")) == NULL) {
- p
rintf("No help just now.\n"
);
+ p
error(HELPFILE
);
return(1);
}
while ((c = getc(f)) != EOF)
return(1);
}
while ((c = getc(f)) != EOF)
@@
-190,10
+190,10
@@
respond(msgvec)
int *msgvec;
{
struct message *mp;
int *msgvec;
{
struct message *mp;
- char *cp, buf[2 * LINESIZE], *rcv, *replyto, **ap;
+ char *cp, *cp2, *cp3, *rcv, *replyto;
+ char buf[2 * LINESIZE], **ap;
struct name *np;
struct header head;
struct name *np;
struct header head;
- char *netmap();
if (msgvec[1] != 0) {
printf("Sorry, can't reply to multiple messages at once\n");
if (msgvec[1] != 0) {
printf("Sorry, can't reply to multiple messages at once\n");
@@
-218,10
+218,10
@@
respond(msgvec)
* Delete my name from the reply list,
* and with it, all my alternate names.
*/
* Delete my name from the reply list,
* and with it, all my alternate names.
*/
- np = delname(np, myname);
- if (altnames
!= 0
)
+ np = delname(np, myname
, icequal
);
+ if (altnames)
for (ap = altnames; *ap; ap++)
for (ap = altnames; *ap; ap++)
- np = delname(np, *ap);
+ np = delname(np, *ap
, icequal
);
head.h_seq = 1;
cp = detract(np, 0);
if (cp != NOSTR && replyto == NOSTR) {
head.h_seq = 1;
cp = detract(np, 0);
if (cp != NOSTR && replyto == NOSTR) {
@@
-248,10
+248,10
@@
respond(msgvec)
if (cp != NOSTR) {
np = elide(extract(cp, GCC));
mapf(np, rcv);
if (cp != NOSTR) {
np = elide(extract(cp, GCC));
mapf(np, rcv);
- np = delname(np, myname);
+ np = delname(np, myname
, icequal
);
if (altnames != 0)
for (ap = altnames; *ap; ap++)
if (altnames != 0)
for (ap = altnames; *ap; ap++)
- np = delname(np, *ap);
+ np = delname(np, *ap
, icequal
);
head.h_cc = detract(np, 0);
}
}
head.h_cc = detract(np, 0);
}
}
@@
-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();
}