X-Git-Url: http://andersk.mit.edu/gitweb/openssh.git/blobdiff_plain/9c8dbb1bfa2808826bc9154227521315d4c0c5ee..5e837c7bdc50170e1fe5d8a6fbfa55066baba718:/openbsd-compat/bsd-nextstep.c?ds=sidebyside diff --git a/openbsd-compat/bsd-nextstep.c b/openbsd-compat/bsd-nextstep.c index 43ec0acd..8195af88 100644 --- a/openbsd-compat/bsd-nextstep.c +++ b/openbsd-compat/bsd-nextstep.c @@ -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 #include -#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