From: guenther Date: Sun, 25 Oct 2015 03:40:58 +0000 (+0000) Subject: POSIX says that you can't capture the return value of sigsetjmp(). X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=571819d87912db7b5028e10338562b262fc5d7d6;p=openbsd 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@ --- 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 {