diff options
author | 1997-07-14 00:24:24 +0000 | |
---|---|---|
committer | 1997-07-14 00:24:24 +0000 | |
commit | c318c72bec0716a2e2c815ba5d2043d9f407365a (patch) | |
tree | bf9592a01a6c7bfd3d986916af28a5ef8acd697c /usr.bin/mail/edit.c | |
parent | bcopy() -> memcpy() and fix some casts. (diff) | |
download | wireguard-openbsd-c318c72bec0716a2e2c815ba5d2043d9f407365a.tar.xz wireguard-openbsd-c318c72bec0716a2e2c815ba5d2043d9f407365a.zip |
NOSTR -> NULL
Use sigsetjmp/siglongjmp instead of sigjmp/longjmp for portability.
Diffstat (limited to 'usr.bin/mail/edit.c')
-rw-r--r-- | usr.bin/mail/edit.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/mail/edit.c b/usr.bin/mail/edit.c index c52f2fa919d..d290d621c09 100644 --- a/usr.bin/mail/edit.c +++ b/usr.bin/mail/edit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: edit.c,v 1.4 1997/07/13 23:53:59 millert Exp $ */ +/* $OpenBSD: edit.c,v 1.5 1997/07/14 00:24:26 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.4 1997/07/13 23:53:59 millert Exp $"; +static char rcsid[] = "$OpenBSD: edit.c,v 1.5 1997/07/14 00:24:26 millert Exp $"; #endif #endif /* not lint */ @@ -193,9 +193,9 @@ run_editor(fp, size, type, readonly) goto out; } nf = NULL; - if ((edit = value(type == 'e' ? "EDITOR" : "VISUAL")) == NOSTR) + if ((edit = value(type == 'e' ? "EDITOR" : "VISUAL")) == NULL) edit = type == 'e' ? _PATH_EX : _PATH_VI; - if (run_command(edit, 0, -1, -1, tempEdit, NOSTR, NOSTR) < 0) { + if (run_command(edit, 0, -1, -1, tempEdit, NULL, NULL) < 0) { (void)unlink(tempEdit); goto out; } |