Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

trek(6): Nuke the -a option along with the logfile argument (all unus…

…ed).
  • Loading branch information...
commit c35be96167b7639a404e58ccec1d7810f8f7e886 1 parent 435f923
Sascha Wildner authored
Showing with 2 additions and 29 deletions.
  1. +1 −18 games/trek/main.c
  2. +1 −11 games/trek/trek.6
View
19 games/trek/main.c
@@ -138,10 +138,6 @@ jmp_buf env;
int
main(int argc, char **argv)
{
-#if 0
- extern FILE *f_log;
- char opencode;
-#endif
int ac;
char **av;
@@ -152,17 +148,8 @@ main(int argc, char **argv)
ac = argc;
av++;
srandomdev();
-#if 0
- opencode = 'w';
-#endif
while (ac > 1 && av[0][0] == '-') {
switch (av[0][1]) {
- case 'a': /* append to log file */
-#if 0
- opencode = 'a';
-#endif
- break;
-
#ifdef xTRACE
case 't': /* trace */
if (getuid() != Mother)
@@ -178,12 +165,8 @@ main(int argc, char **argv)
ac--;
av++;
}
- if (ac > 2)
- syserr("arg count");
-#if 0
if (ac > 1)
- f_log = fopen(av[0], opencode);
-#endif
+ syserr("arg count");
printf("\n * * * S T A R T R E K * * *\n\nPress return to continue.\n");
View
12 games/trek/trek.6
@@ -27,9 +27,8 @@
.\"
.\" @(#)trek.6 8.2 (Berkeley) 12/30/93
.\" $FreeBSD: src/games/trek/trek.6,v 1.4 1999/08/27 23:29:19 peter Exp $
-.\" $DragonFly: src/games/trek/trek.6,v 1.3 2007/03/27 10:08:02 swildner Exp $
.\"
-.Dd November 14, 2009
+.Dd July 12, 2012
.Dt TREK 6
.Os
.Sh NAME
@@ -37,10 +36,6 @@
.Nd trekkie game
.Sh SYNOPSIS
.Nm
-.Oo
-.Op Fl a
-.Ar file
-.Oc
.Sh DESCRIPTION
.Nm Trek
is a game of space glory and war.
@@ -49,11 +44,6 @@ For complete documentation, see
.Em Trek
by Eric Allman.
.Pp
-If a filename is given, a log of the game is written onto that file.
-If the
-.Fl a
-flag is given before the filename, that file is appended to, not truncated.
-.Pp
The game will ask you what length game you would like.
Valid responses are
.Dq short ,
Please sign in to comment.
Something went wrong with that request. Please try again.