diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2015-10-25 03:40:59 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2015-10-25 03:40:59 +0000 |
commit | 514b64ba6108bd24be53ddd5a8cc37b6d46deb30 (patch) | |
tree | 33385a471e41b40bf36a4f6dc06ab6e974e6e5ba /bin | |
parent | 9e1ce3cd93e3db6d5aa2e7f7789f3f56e9f7766c (diff) |
POSIX says that you can't capture the return value of sigsetjmp().
Fortunately, we don't need it as we only pass siglongjmp() a single value.
ok deraadt@
Diffstat (limited to 'bin')
-rw-r--r-- | bin/ed/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/ed/main.c b/bin/ed/main.c index b98dcef6812..0cfa89976c8 100644 --- a/bin/ed/main.c +++ b/bin/ed/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.54 2015/10/21 16:06:57 millert Exp $ */ +/* $OpenBSD: main.c,v 1.55 2015/10/25 03:40:58 guenther Exp $ */ /* $NetBSD: main.c,v 1.3 1995/03/21 09:04:44 cgd Exp $ */ /* main.c: This file contains the main control and user-interface routines @@ -174,7 +174,8 @@ top: signal(SIGHUP, signal_hup); signal(SIGQUIT, SIG_IGN); signal(SIGINT, signal_int); - if ((status = sigsetjmp(env, 1))) { + if (sigsetjmp(env, 1)) { + status = -1; fputs("\n?\n", stderr); seterrmsg("interrupt"); } else { |