diff options
author | abs <abs> | 2001-02-12 16:01:40 +0000 |
---|---|---|
committer | abs <abs> | 2001-02-12 16:01:40 +0000 |
commit | b58b798839f764e8f75a4a107863d07f7ae1d53a (patch) | |
tree | 645a652c39374884d796f425c8820a5d5e1e7aff /games/tscp | |
parent | fe138015df753dafe449c54592c035711215fc01 (diff) | |
download | pkgsrc-b58b798839f764e8f75a4a107863d07f7ae1d53a.tar.gz |
'cvs rm' is your friend, & wiz who obviously has had more caffine than me today
Diffstat (limited to 'games/tscp')
-rw-r--r-- | games/tscp/patches/patch-aa | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/games/tscp/patches/patch-aa b/games/tscp/patches/patch-aa deleted file mode 100644 index 28f1952733d..00000000000 --- a/games/tscp/patches/patch-aa +++ /dev/null @@ -1,33 +0,0 @@ -$NetBSD: patch-aa,v 1.2 2001/02/04 11:32:35 abs Exp $ - ---- main.c.orig Thu Nov 30 19:28:18 2000 -+++ main.c -@@ -51,7 +51,7 @@ - init(); - gen(); - computer_side = EMPTY; -- max_time = 1000000; -+ max_time = 10000000; - max_depth = 4; - for (;;) { - if (side == computer_side) { /* computer's turn */ -@@ -73,7 +73,8 @@ - - /* get user input */ - printf("tscp> "); -- scanf("%s", s); -+ if (scanf("%s", s) == EOF) -+ return 0; - if (!strcmp(s, "on")) { - computer_side = side; - continue; -@@ -279,7 +280,8 @@ - print_result(); - continue; - } -- fgets(line, 256, stdin); -+ if (!fgets(line, 256, stdin)) -+ return; - if (line[0] == '\n') - continue; - sscanf(line, "%s", command); |