summaryrefslogtreecommitdiff
path: root/games/tt/files/patch-tt.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/tt/files/patch-tt.c')
-rw-r--r--games/tt/files/patch-tt.c26
1 files changed, 16 insertions, 10 deletions
diff --git a/games/tt/files/patch-tt.c b/games/tt/files/patch-tt.c
index c87cc23aa8eb..af47135628a1 100644
--- a/games/tt/files/patch-tt.c
+++ b/games/tt/files/patch-tt.c
@@ -13,17 +13,14 @@
/*-------------------------------------------------------------------------*/
-extern time_t time ();
--extern char *ctime ();
--extern char *malloc ();
--extern char *getenv ();
--extern char *getlogin ();
++/* extern time_t time ();
+ extern char *ctime ();
+-/*extern char *malloc ();*/
++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 ();
++extern struct passwd *getpwuid (); */
static int get_key ();
@@ -35,3 +32,12 @@
/* These four variables determine which game we're playing */
struct piece *pieces = pieces4;
+@@ -198,7 +199,7 @@
+ (void) umask (0000); /* 000 octal, just to make the point */
+
+ #ifdef LOCKF
+- if ((lock_fd = open (SCORE_FILE, O_RDWR | O_CREAT, 0666)) == -1)
++ if ((lock_fd = open (SCORE_FILE, O_RDWR | O_CREAT, 0664)) == -1)
+ die (LE_OPEN, "Couldn't open(2) score-file for lockf()");
+
+ while (i++ < 5) { /* Make up to five attempts */