summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorcheusov <cheusov@NetBSD.org>2019-04-24 17:27:08 +0000
committercheusov <cheusov@NetBSD.org>2019-04-24 17:27:08 +0000
commitf9d7fa38fbfce5cfda131b53464cd4b08c68e770 (patch)
tree3dfb963ac0f3caea3aeaf1859e9438542a11a3db /bin
parentdb58a2333a88e45e44b8d5be0f55fe078234bb7c (diff)
Fix compilation failure with gcc-8.
Equal pointers to 'struct sigaction' should not be passed to sigaction(2). So, we pass NULL as an "old sigaction" structure.
Diffstat (limited to 'bin')
-rw-r--r--bin/pax/pax.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/bin/pax/pax.c b/bin/pax/pax.c
index 39065691a70..5aefef05b91 100644
--- a/bin/pax/pax.c
+++ b/bin/pax/pax.c
@@ -1,4 +1,4 @@
-/* $NetBSD: pax.c,v 1.48 2017/10/02 21:55:35 joerg Exp $ */
+/* $NetBSD: pax.c,v 1.49 2019/04/24 17:27:08 cheusov Exp $ */
/*-
* Copyright (c) 1992 Keith Muller.
@@ -44,7 +44,7 @@ __COPYRIGHT("@(#) Copyright (c) 1992, 1993\
#if 0
static char sccsid[] = "@(#)pax.c 8.2 (Berkeley) 4/18/94";
#else
-__RCSID("$NetBSD: pax.c,v 1.48 2017/10/02 21:55:35 joerg Exp $");
+__RCSID("$NetBSD: pax.c,v 1.49 2019/04/24 17:27:08 cheusov Exp $");
#endif
#endif /* not lint */
@@ -453,28 +453,28 @@ gen_init(void)
if ((sigaction(SIGHUP, &n_hand, &o_hand) < 0) &&
(o_hand.sa_handler == SIG_IGN) &&
- (sigaction(SIGHUP, &o_hand, &o_hand) < 0))
+ (sigaction(SIGHUP, &o_hand, NULL) < 0))
goto out;
if ((sigaction(SIGTERM, &n_hand, &o_hand) < 0) &&
(o_hand.sa_handler == SIG_IGN) &&
- (sigaction(SIGTERM, &o_hand, &o_hand) < 0))
+ (sigaction(SIGTERM, &o_hand, NULL) < 0))
goto out;
if ((sigaction(SIGINT, &n_hand, &o_hand) < 0) &&
(o_hand.sa_handler == SIG_IGN) &&
- (sigaction(SIGINT, &o_hand, &o_hand) < 0))
+ (sigaction(SIGINT, &o_hand, NULL) < 0))
goto out;
if ((sigaction(SIGQUIT, &n_hand, &o_hand) < 0) &&
(o_hand.sa_handler == SIG_IGN) &&
- (sigaction(SIGQUIT, &o_hand, &o_hand) < 0))
+ (sigaction(SIGQUIT, &o_hand, NULL) < 0))
goto out;
#ifdef SIGXCPU
if ((sigaction(SIGXCPU, &n_hand, &o_hand) < 0) &&
(o_hand.sa_handler == SIG_IGN) &&
- (sigaction(SIGXCPU, &o_hand, &o_hand) < 0))
+ (sigaction(SIGXCPU, &o_hand, NULL) < 0))
goto out;
#endif
n_hand.sa_handler = SIG_IGN;