]> andersk Git - openssh.git/blobdiff - openbsd-compat/bsd-nextstep.c
- djm@cvs.openbsd.org 2010/01/30 02:54:53
[openssh.git] / openbsd-compat / bsd-nextstep.c
index 43ec0acd9513809fdea2b46afbe7bbdcff1f8802..8195af88a4ba1d71e39ffb92bdab9f02c1b7bab7 100644 (file)
@@ -1,4 +1,6 @@
 /*
+ * Copyright (c) 2000,2001 Ben Lindstrom.  All rights reserved.
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
@@ -25,7 +27,7 @@
 #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,9 +37,10 @@ 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;
+       return (wait_pid);
 }
 
 int
This page took 0.032192 seconds and 4 git commands to generate.