summaryrefslogtreecommitdiff
path: root/games/backgammon/teachgammon/tutor.c
diff options
context:
space:
mode:
authorPaul Janzen <pjanzen@cvs.openbsd.org>1999-07-31 21:57:42 +0000
committerPaul Janzen <pjanzen@cvs.openbsd.org>1999-07-31 21:57:42 +0000
commita142091aeb7ec9ff1f3e3758ed21605023e31505 (patch)
tree7889cf25905dc0e246600b6c4cfec4e7338e38a9 /games/backgammon/teachgammon/tutor.c
parent17e6bc56e09e27f5065d428383edd57321c0448e (diff)
use const where appropriate (jsm28@cam.ac.uk). Also some very minor tidying.
Diffstat (limited to 'games/backgammon/teachgammon/tutor.c')
-rw-r--r--games/backgammon/teachgammon/tutor.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/games/backgammon/teachgammon/tutor.c b/games/backgammon/teachgammon/tutor.c
index 67e6b5ee609..885f7e6402b 100644
--- a/games/backgammon/teachgammon/tutor.c
+++ b/games/backgammon/teachgammon/tutor.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tutor.c,v 1.2 1998/03/19 11:13:35 pjanzen Exp $ */
+/* $OpenBSD: tutor.c,v 1.3 1999/07/31 21:57:41 pjanzen Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -37,14 +37,14 @@
#if 0
static char sccsid[] = "@(#)tutor.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$OpenBSD: tutor.c,v 1.2 1998/03/19 11:13:35 pjanzen Exp $";
+static char rcsid[] = "$OpenBSD: tutor.c,v 1.3 1999/07/31 21:57:41 pjanzen Exp $";
#endif
#endif /* not lint */
#include "back.h"
#include "tutor.h"
-static char better[] = "That is a legal move, but there is a better one.\n";
+static const char better[] = "That is a legal move, but there is a better one.\n";
void
tutor()
@@ -171,9 +171,9 @@ clrest()
int
brdeq(b1, b2)
- int *b1, *b2;
+ const int *b1, *b2;
{
- int *e;
+ const int *e;
e = b1 + 26;
while (b1 < e)