BSD 4_3 release
[unix-history] / usr / src / games / snake / snake.c
index 2e1602b..915d356 100644 (file)
@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 1980 Regents of the University of California.
+ * All rights reserved.  The Berkeley software License Agreement
+ * specifies the terms and conditions for redistribution.
+ */
+
+#ifndef lint
+char copyright[] =
+"@(#) Copyright (c) 1980 Regents of the University of California.\n\
+ All rights reserved.\n";
+#endif not lint
+
+#ifndef lint
+static char sccsid[] = "@(#)snake.c    5.1 (Berkeley) 5/30/85";
+#endif not lint
+
 /*
  * snake - crt hack game.
  *
 /*
  * snake - crt hack game.
  *
@@ -480,11 +496,12 @@ busy()
 #endif
 }
 
 #endif
 }
 
-post(score, flag)
-int    score, flag;
+post(iscore, flag)
+int    iscore, flag;
 {
 {
+       short   score = iscore;
        int     rawscores;
        int     rawscores;
-       short   uid = getuid();
+       short   uid;
        short   oldbest=0;
        short   allbwho=0, allbscore=0;
        struct  passwd *p, *getpwuid();
        short   oldbest=0;
        short   allbwho=0, allbscore=0;
        struct  passwd *p, *getpwuid();