Module Name:    src
Committed By:   dholland
Date:           Mon May 25 00:29:08 UTC 2009

Modified Files:
        src/games/trek: main.c

Log Message:
Remove obviously botched test for "fast mode" based on terminal speed.
Default to "fast mode" as ~nobody has a 300 baud terminal any more.
("Fast mode" apparently controls whether short-range scans are printed
by default at certain times.)


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/games/trek/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/games/trek/main.c
diff -u src/games/trek/main.c:1.20 src/games/trek/main.c:1.21
--- src/games/trek/main.c:1.20	Mon May 25 00:25:58 2009
+++ src/games/trek/main.c	Mon May 25 00:29:08 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: main.c,v 1.20 2009/05/25 00:25:58 dholland Exp $	*/
+/*	$NetBSD: main.c,v 1.21 2009/05/25 00:29:08 dholland Exp $	*/
 
 /*
  * Copyright (c) 1980, 1993
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)main.c	8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: main.c,v 1.20 2009/05/25 00:25:58 dholland Exp $");
+__RCSID("$NetBSD: main.c,v 1.21 2009/05/25 00:29:08 dholland Exp $");
 #endif
 #endif /* not lint */
 
@@ -167,21 +167,18 @@
 {
 	time_t		curtime;
 	long			vect;
-	struct	termios		argp;
 	int ch;
 
 	/* Revoke setgid privileges */
 	setgid(getgid());
 
+	/* Default to fast mode */
+	Etc.fast = 1;
+
 	time(&curtime);
 	vect = (long) curtime;
 	srand(vect);
 
-	if (tcgetattr(1, &argp) == 0) {
-		if (cfgetispeed(&argp) < B1200)
-			Etc.fast++;
-	}
-
 	while ((ch = getopt(argc, argv, "fst")) != -1) {
 		switch (ch) {
 		  case 'f':	/* set fast mode */

Reply via email to