git: b488428efebd - main - pf/libevent: Consistently pass evsignal to sigaction.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 20 Jun 2023 19:39:09 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=b488428efebda411bad0d9d52c62aa38dfba05f1 commit b488428efebda411bad0d9d52c62aa38dfba05f1 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2023-06-20 19:31:19 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2023-06-20 19:31:19 +0000 pf/libevent: Consistently pass evsignal to sigaction. This silences a set but unused warning from GCC. Reviewed by: kp Differential Revision: https://reviews.freebsd.org/D40649 --- contrib/pf/libevent/signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/pf/libevent/signal.c b/contrib/pf/libevent/signal.c index 71bcffcba5b3..240835b93a76 100644 --- a/contrib/pf/libevent/signal.c +++ b/contrib/pf/libevent/signal.c @@ -144,7 +144,7 @@ evsignal_del(struct event *ev) evsignal = EVENT_SIGNAL(ev); - return (sigaction(EVENT_SIGNAL(ev),(struct sigaction *)SIG_DFL, NULL)); + return (sigaction(evsignal, (struct sigaction *)SIG_DFL, NULL)); } static void