summaryrefslogtreecommitdiff
path: root/games/tt/files/patch-tt.c
blob: c87cc23aa8eb6265819ef69e4d561cf6848e27d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
--- tt.c.orig	Tue May 27 17:46:22 2003
+++ tt.c	Sat Sep 13 09:55:18 2003
@@ -21,6 +21,7 @@
 #include <fcntl.h>
 #include <errno.h>
 #include <pwd.h>
+#include <unistd.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 
@@ -32,19 +33,19 @@
 
 /*-------------------------------------------------------------------------*/
 
-extern time_t time ();
-extern char *ctime ();
-extern char *malloc ();
-extern char *getenv ();
-extern char *getlogin ();
-extern struct passwd *getpwuid ();
+//extern time_t time ();
+//extern char *ctime ();
+//extern char *malloc ();
+//extern char *getenv ();
+//extern char *getlogin ();
+//extern struct passwd *getpwuid ();
 
 static int get_key ();
 
 /*-------------------------------------------------------------------------*/
 
 char *LOCK_FILE = "/home/mike/lib/ttlock/ttlock";
-char *SCORE_FILE = "/home/mike/lib/ttscores";
+char *SCORE_FILE = "/var/games/ttscores";
 
 /* These four variables determine which game we're playing */
 struct piece *pieces = pieces4;