4.4BSD snapshot (revision 8.1); add 1993 to copyright
[unix-history] / usr / src / games / sail / pl_1.c
index 82595fd..a39ffa2 100644 (file)
@@ -1,12 +1,13 @@
 /*
 /*
- * Copyright (c) 1983 Regents of the University of California.
- * All rights reserved.  The Berkeley software License Agreement
- * specifies the terms and conditions for redistribution.
+ * Copyright (c) 1983, 1993
+ *     The Regents of the University of California.  All rights reserved.
+ *
+ * %sccs.include.redist.c%
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)pl_1.c     5.1 (Berkeley) %G%";
-#endif not lint
+static char sccsid[] = "@(#)pl_1.c     8.1 (Berkeley) %G%";
+#endif /* not lint */
 
 #include "player.h"
 #include <sys/types.h>
 
 #include "player.h"
 #include <sys/types.h>
@@ -86,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;
@@ -98,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);