diff options
author | 1996-06-11 12:53:31 +0000 | |
---|---|---|
committer | 1996-06-11 12:53:31 +0000 | |
commit | 7eb34045c5a16b2631ce07283405998023baaa05 (patch) | |
tree | 5accc22f768082b91bad9afb235727b21da0a329 /usr.bin/mail/edit.c | |
parent | document that -print0 is an alternative to -X (diff) | |
download | wireguard-openbsd-7eb34045c5a16b2631ce07283405998023baaa05.tar.xz wireguard-openbsd-7eb34045c5a16b2631ce07283405998023baaa05.zip |
from christos;
- Fix PR/105: Implement dot locking protocol and check return value of flock.
- Fix PR/2247: Don't call unknown users "ubluit". Issue an error message.
- Fix/add prototypes.
- Fix warnings.
- Use POSIX signal mask calls.
Diffstat (limited to 'usr.bin/mail/edit.c')
-rw-r--r-- | usr.bin/mail/edit.c | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/usr.bin/mail/edit.c b/usr.bin/mail/edit.c index 385ac767ad4..60dbc3d8d47 100644 --- a/usr.bin/mail/edit.c +++ b/usr.bin/mail/edit.c @@ -1,3 +1,6 @@ +/* $OpenBSD: edit.c,v 1.2 1996/06/11 12:53:38 deraadt Exp $ */ +/* $NetBSD: edit.c,v 1.5 1996/06/08 19:48:20 christos Exp $ */ + /* * Copyright (c) 1980, 1993 * The Regents of the University of California. All rights reserved. @@ -32,8 +35,11 @@ */ #ifndef lint -static char sccsid[] = "from: @(#)edit.c 8.1 (Berkeley) 6/6/93"; -static char rcsid[] = "$Id: edit.c,v 1.1.1.1 1995/10/18 08:45:38 deraadt Exp $"; +#if 0 +static char sccsid[] = "@(#)edit.c 8.1 (Berkeley) 6/6/93"; +#else +static char rcsid[] = "$OpenBSD: edit.c,v 1.2 1996/06/11 12:53:38 deraadt Exp $"; +#endif #endif /* not lint */ #include "rcv.h" @@ -50,9 +56,10 @@ static char rcsid[] = "$Id: edit.c,v 1.1.1.1 1995/10/18 08:45:38 deraadt Exp $"; * Edit a message list. */ int -editor(msgvec) - int *msgvec; +editor(v) + void *v; { + int *msgvec = v; return edit1(msgvec, 'e'); } @@ -61,9 +68,10 @@ editor(msgvec) * Invoke the visual editor on a message list. */ int -visual(msgvec) - int *msgvec; +visual(v) + void *v; { + int *msgvec = v; return edit1(msgvec, 'v'); } |