From 156015b799b1addb2d13e417d65006e508fff5f8 Mon Sep 17 00:00:00 2001
From: Afif Elghraoui <afif@debian.org>
Date: Sat, 27 Aug 2016 22:00:57 -0700
Subject: [PATCH] Remove extra #endif and streamline surrounding conditionals
This commit fixes a compile-time error introduced by
538640f. The preprocessor directives remaining from
the removal of bsd union wait can consequently be streamlined.
---
source/clients/qevent/qevent.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/source/clients/qevent/qevent.c b/source/clients/qevent/qevent.c
index 6b01bce..4a5a9fb 100644
a
|
b
|
static void qevent_start_trigger_script(int qevent_event, const char* script_fil |
299 | 299 | |
300 | 300 | if (pid > 0) { |
301 | 301 | int exit_status; |
| 302 | int status; |
302 | 303 | |
303 | 304 | #if !__INTERIX |
304 | 305 | struct rusage rusage; |
305 | | #endif |
306 | | int status; |
307 | | #endif |
308 | | #if __INTERIX |
309 | | waitpid(pid, &status, 0); |
310 | | #else |
311 | 306 | wait3(&status, 0, &rusage); |
| 307 | #else |
| 308 | waitpid(pid, &status, 0); |
312 | 309 | #endif |
313 | 310 | exit_status = status; |
314 | 311 | |