Ticket #1581: 0001-Remove-extra-endif-and-streamline-surrounding-condit.patch

File 0001-Remove-extra-endif-and-streamline-surrounding-condit.patch, 1.1 KB (added by afif, 3 years ago)
  • source/clients/qevent/qevent.c

    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 
    299299
    300300   if (pid > 0) {
    301301      int exit_status;
     302      int status;
    302303
    303304#if !__INTERIX
    304305      struct rusage rusage;
    305 #endif
    306       int status;
    307 #endif
    308 #if __INTERIX
    309       waitpid(pid, &status, 0);
    310 #else
    311306      wait3(&status, 0, &rusage);
     307#else
     308      waitpid(pid, &status, 0);
    312309#endif
    313310      exit_status = status;
    314311