]> andersk Git - openssh.git/blobdiff - openbsd-compat/bsd-nextstep.c
- markus@cvs.openbsd.org 2001/04/04 00:06:54
[openssh.git] / openbsd-compat / bsd-nextstep.c
index 43ec0acd9513809fdea2b46afbe7bbdcff1f8802..f3c1fb6d58daf7d9728f6ed874ec8eb2ac2e817c 100644 (file)
 
 #include "includes.h"
 
+RCSID("$Id$");
+
 #ifdef HAVE_NEXT
 #include <errno.h>
 #include <sys/wait.h>
-#include "next-posix.h"
+#include "bsd-nextstep.h"
 
 pid_t 
 posix_wait(int *status)
@@ -35,7 +37,8 @@ posix_wait(int *status)
 
        #undef wait                     /* Use NeXT's wait() function */
        wait_pid = wait(&statusp);
-       status = (int *) statusp.w_status;
+       if (status)
+               *status = (int) statusp.w_status;
 
        return wait_pid;
 }
This page took 0.107534 seconds and 4 git commands to generate.