4.4BSD snapshot (revision 8.1); add 1993 to copyright
[unix-history] / usr / src / games / battlestar / fly.c
index 16bb3e6..cdccdca 100644 (file)
@@ -1,12 +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.
  *
  * %sccs.include.redist.c%
  */
 
 #ifndef lint
  *
  * %sccs.include.redist.c%
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)fly.c      5.4 (Berkeley) %G%";
+static char sccsid[] = "@(#)fly.c      8.1 (Berkeley) %G%";
 #endif /* not lint */
 
 #include "externs.h"
 #endif /* not lint */
 
 #include "externs.h"
@@ -24,6 +24,7 @@ int clock = 120;              /* time for all the flights in the game */
 char cross = 0;
 sig_t oldsig;
 
 char cross = 0;
 sig_t oldsig;
 
+void
 succumb()
 {
        if (oldsig == SIG_DFL) {
 succumb()
 {
        if (oldsig == SIG_DFL) {
@@ -32,16 +33,15 @@ succumb()
        }
        if (oldsig != SIG_IGN) {
                endfly();
        }
        if (oldsig != SIG_IGN) {
                endfly();
-               (*oldsig)();
+               (*oldsig)(SIGINT);
        }
 }
 
 visual()
 {
        }
 }
 
 visual()
 {
-       int moveenemy();
+       void moveenemy();
 
        destroyed = 0;
 
        destroyed = 0;
-       savetty();
        if(initscr() == ERR){
                puts("Whoops!  No more memory...");
                return(0);
        if(initscr() == ERR){
                puts("Whoops!  No more memory...");
                return(0);
@@ -208,6 +208,7 @@ blast()
        alarm(1);
 }
 
        alarm(1);
 }
 
+void
 moveenemy()
 {
        double d;
 moveenemy()
 {
        double d;