4.4BSD snapshot (revision 8.1); add 1993 to copyright
[unix-history] / usr / src / games / sail / pl_1.c
index 52a4464..a39ffa2 100644 (file)
@@ -1,17 +1,12 @@
 /*
 /*
- * Copyright (c) 1983 Regents of the University of California.
- * All rights reserved.
+ * Copyright (c) 1983, 1993
+ *     The Regents of the University of California.  All rights reserved.
  *
  *
- * Redistribution and use in source and binary forms are permitted
- * provided that this notice is preserved and that due credit is given
- * to the University of California at Berkeley. The name of the University
- * may not be used to endorse or promote products derived from this
- * software without specific prior written permission. This software
- * is provided ``as is'' without express or implied warranty.
+ * %sccs.include.redist.c%
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)pl_1.c     5.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)pl_1.c     8.1 (Berkeley) %G%";
 #endif /* not lint */
 
 #include "player.h"
 #endif /* not lint */
 
 #include "player.h"
@@ -92,11 +87,13 @@ int conditions;
        exit(0);
 }
 
        exit(0);
 }
 
+void
 choke()
 {
        leave(LEAVE_QUIT);
 }
 
 choke()
 {
        leave(LEAVE_QUIT);
 }
 
+void
 child()
 {
        union wait status;
 child()
 {
        union wait status;
@@ -104,7 +101,7 @@ child()
 
        (void) signal(SIGCHLD, SIG_IGN);
        do {
 
        (void) signal(SIGCHLD, SIG_IGN);
        do {
-               pid = wait3(&status, WNOHANG, (struct rusage *)0);
+               pid = wait3((int *)&status, WNOHANG, (struct rusage *)0);
                if (pid < 0 || pid > 0 && !WIFSTOPPED(status))
                        hasdriver = 0;
        } while (pid > 0);
                if (pid < 0 || pid > 0 && !WIFSTOPPED(status))
                        hasdriver = 0;
        } while (pid > 0);