diff options
author | Paul Janzen <pjanzen@cvs.openbsd.org> | 1998-08-19 07:42:28 +0000 |
---|---|---|
committer | Paul Janzen <pjanzen@cvs.openbsd.org> | 1998-08-19 07:42:28 +0000 |
commit | ed884b9fa4509c09f0f7ab71efe57a4e83a2e055 (patch) | |
tree | ef9d859a0754785b42ea5cacb27aff54b5000315 /games/trek/lrscan.c | |
parent | f4fc9566a4d35c0cc2bf8c7f1136287d8eec8c44 (diff) |
tags, formatting, ANSI-fication, prototypes, de-typos, and the occasional
initialization, removal of unused variable, or other minor fix. Most
changes are from or inspired by NetBSD.
Diffstat (limited to 'games/trek/lrscan.c')
-rw-r--r-- | games/trek/lrscan.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/games/trek/lrscan.c b/games/trek/lrscan.c index 4d6e7d80c3c..635167c6d3c 100644 --- a/games/trek/lrscan.c +++ b/games/trek/lrscan.c @@ -1,3 +1,4 @@ +/* $OpenBSD: lrscan.c,v 1.2 1998/08/19 07:41:47 pjanzen Exp $ */ /* $NetBSD: lrscan.c,v 1.3 1995/04/22 10:59:09 cgd Exp $ */ /* @@ -37,11 +38,12 @@ #if 0 static char sccsid[] = "@(#)lrscan.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$NetBSD: lrscan.c,v 1.3 1995/04/22 10:59:09 cgd Exp $"; +static char rcsid[] = "$OpenBSD: lrscan.c,v 1.2 1998/08/19 07:41:47 pjanzen Exp $"; #endif #endif /* not lint */ -# include "trek.h" +#include <stdio.h> +#include "trek.h" /* ** LONG RANGE OF SCANNERS @@ -55,15 +57,15 @@ static char rcsid[] = "$NetBSD: lrscan.c,v 1.3 1995/04/22 10:59:09 cgd Exp $"; ** for future use by the "chart" option of the computer. */ -lrscan() +void +lrscan(v) + int v; { register int i, j; register struct quad *q; if (check_out(LRSCAN)) - { return; - } printf("Long range scan for quadrant %d,%d\n\n", Ship.quadx, Ship.quady); /* print the header on top */ @@ -109,5 +111,4 @@ lrscan() } } printf("\n -------------------\n"); - return; } |