summaryrefslogtreecommitdiff
path: root/usr.bin/mail/edit.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-11-14 00:24:02 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-11-14 00:24:02 +0000
commit8ec4e47fe6d683fddd1983b7fea55314ad49fb63 (patch)
tree49a69dd7fe86c654e79bfdc2bf8ba84754d702fc /usr.bin/mail/edit.c
parent142716f9ecd84b5d73af804d20cc15f9b67ca3f7 (diff)
NetBSD changes (mostly comsmetic):
replace panic() with calls to err()/errx() use S_IS* instead of doing by hand with S_IF*. Use TIMESPEC_TO_TIMEVAL() and gettimeofday instead of time(2) Use _POSIX_VDISABLE, not 0 Kill register
Diffstat (limited to 'usr.bin/mail/edit.c')
-rw-r--r--usr.bin/mail/edit.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/usr.bin/mail/edit.c b/usr.bin/mail/edit.c
index 67efa927b1d..43e7095b13e 100644
--- a/usr.bin/mail/edit.c
+++ b/usr.bin/mail/edit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: edit.c,v 1.6 1997/07/24 17:27:10 millert Exp $ */
+/* $OpenBSD: edit.c,v 1.7 1997/11/14 00:23:45 millert Exp $ */
/* $NetBSD: edit.c,v 1.5 1996/06/08 19:48:20 christos Exp $ */
/*
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)edit.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: edit.c,v 1.6 1997/07/24 17:27:10 millert Exp $";
+static char rcsid[] = "$OpenBSD: edit.c,v 1.7 1997/11/14 00:23:45 millert Exp $";
#endif
#endif /* not lint */
@@ -86,10 +86,9 @@ edit1(msgvec, type)
int *msgvec;
int type;
{
- register int c;
- int i;
+ int c, i;
FILE *fp;
- register struct message *mp;
+ struct message *mp;
off_t size;
/*
@@ -148,12 +147,12 @@ edit1(msgvec, type)
*/
FILE *
run_editor(fp, size, type, readonly)
- register FILE *fp;
+ FILE *fp;
off_t size;
int type, readonly;
{
- register FILE *nf = NULL;
- register int t;
+ FILE *nf = NULL;
+ int t;
time_t modtime;
char *edit, tempname[PATHSIZE];
struct stat statb;