summaryrefslogtreecommitdiffstats
path: root/package/sysklogd/0001-replace-deprecated-union-wait-with-int.patch
blob: c9a30e992492c56c45db603b9f3708e8c1662624 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 86fe87cdf097e6286e76eadcc9c11c79be6258f2 Mon Sep 17 00:00:00 2001
From: Ryan Coe <bluemrp9@gmail.com>
Date: Fri, 7 Oct 2016 19:42:40 -0700
Subject: [PATCH 1/1] replace deprecated union wait with int

Signed-off-by: Ryan Coe <bluemrp9@gmail.com>
---
 syslogd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/syslogd.c b/syslogd.c
index ea73ea5da5e935bb8cab328559f950cd3afc2d20..ace96c8be40f50d123120c0586a384a298212245 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -2094,7 +2094,7 @@ void reapchild()
	(void) signal(SIGCHLD, reapchild);	/* reset signal handler -ASP */
	wait ((int *)0);
 #else
-	union wait status;
+	int status;

	while (wait3(&status, WNOHANG, (struct rusage *) NULL) > 0)
		;
--
2.9.3
OpenPOWER on IntegriCloud