summaryrefslogtreecommitdiff
path: root/games/trek/getcodi.c
diff options
context:
space:
mode:
authorPaul Janzen <pjanzen@cvs.openbsd.org>1998-08-19 07:42:28 +0000
committerPaul Janzen <pjanzen@cvs.openbsd.org>1998-08-19 07:42:28 +0000
commited884b9fa4509c09f0f7ab71efe57a4e83a2e055 (patch)
treeef9d859a0754785b42ea5cacb27aff54b5000315 /games/trek/getcodi.c
parentf4fc9566a4d35c0cc2bf8c7f1136287d8eec8c44 (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/getcodi.c')
-rw-r--r--games/trek/getcodi.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/games/trek/getcodi.c b/games/trek/getcodi.c
index 3152addec4f..b1dc7bb3970 100644
--- a/games/trek/getcodi.c
+++ b/games/trek/getcodi.c
@@ -1,3 +1,4 @@
+/* $OpenBSD: getcodi.c,v 1.2 1998/08/19 07:41:35 pjanzen Exp $ */
/* $NetBSD: getcodi.c,v 1.3 1995/04/22 10:58:55 cgd Exp $ */
/*
@@ -37,11 +38,12 @@
#if 0
static char sccsid[] = "@(#)getcodi.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$NetBSD: getcodi.c,v 1.3 1995/04/22 10:58:55 cgd Exp $";
+static char rcsid[] = "$OpenBSD: getcodi.c,v 1.2 1998/08/19 07:41:35 pjanzen Exp $";
#endif
#endif /* not lint */
-# include "getpar.h"
+#include "getpar.h"
+#include "trek.h"
/*
** get course and distance
@@ -53,11 +55,11 @@ static char rcsid[] = "$NetBSD: getcodi.c,v 1.3 1995/04/22 10:58:55 cgd Exp $";
** (meaning to drop the request).
*/
+int
getcodi(co, di)
-int *co;
-double *di;
+ int *co;
+ double *di;
{
-
*co = getintpar("Course");
/* course must be in the interval [0, 360] */