diff options
author | dholland <dholland@NetBSD.org> | 2009-05-25 00:29:08 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2009-05-25 00:29:08 +0000 |
commit | 4c730d8ae51ddaf389942c8451278b1b6de2d205 (patch) | |
tree | c1f6bd6e9c807ae270bd848b104c2a00d8d99e79 /trek | |
parent | 33382f500312d0f225c142eddd522176d47c4381 (diff) | |
download | bsdgames-darwin-4c730d8ae51ddaf389942c8451278b1b6de2d205.tar.gz bsdgames-darwin-4c730d8ae51ddaf389942c8451278b1b6de2d205.tar.zst bsdgames-darwin-4c730d8ae51ddaf389942c8451278b1b6de2d205.zip |
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.)
Diffstat (limited to 'trek')
-rw-r--r-- | trek/main.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/trek/main.c b/trek/main.c index 449bb2b2..bbf327db 100644 --- a/trek/main.c +++ b/trek/main.c @@ -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 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\ #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 @@ main(int argc, char **argv) { 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 */ |