normalize routine bug; bug report net2/lib/4
[unix-history] / usr / src / lib / libc / gen / waitpid.c
index e87e70c..6ae7e7c 100644 (file)
@@ -6,7 +6,7 @@
  */
 
 #if defined(LIBC_SCCS) && !defined(lint)
  */
 
 #if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)waitpid.c  5.3 (Berkeley) %G%";
+static char sccsid[] = "@(#)waitpid.c  5.4 (Berkeley) %G%";
 #endif /* LIBC_SCCS and not lint */
 
 #include <sys/types.h>
 #endif /* LIBC_SCCS and not lint */
 
 #include <sys/types.h>
@@ -15,10 +15,14 @@ static char sccsid[] = "@(#)waitpid.c       5.3 (Berkeley) %G%";
 #include <sys/resource.h>
 
 pid_t
 #include <sys/resource.h>
 
 pid_t
-waitpid(pid, pstat, options)
-       int pid;
-       union wait *pstat;
+#if __STDC__
+waitpid(pid_t pid, int *istat, int options)
+#else
+waitpid(pid, istat, options)
+       pid_t pid;
+       int *istat;
        int options;
        int options;
+#endif
 {
 {
-       return (wait4(pid, pstat, options, (struct rusage *)0));
+       return (wait4(pid, istat, options, (struct rusage *)0));
 }
 }