diff options
author | Paul Janzen <pjanzen@cvs.openbsd.org> | 1999-07-31 21:57:42 +0000 |
---|---|---|
committer | Paul Janzen <pjanzen@cvs.openbsd.org> | 1999-07-31 21:57:42 +0000 |
commit | a142091aeb7ec9ff1f3e3758ed21605023e31505 (patch) | |
tree | 7889cf25905dc0e246600b6c4cfec4e7338e38a9 /games/backgammon/common_source/table.c | |
parent | 17e6bc56e09e27f5065d428383edd57321c0448e (diff) |
use const where appropriate (jsm28@cam.ac.uk). Also some very minor tidying.
Diffstat (limited to 'games/backgammon/common_source/table.c')
-rw-r--r-- | games/backgammon/common_source/table.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/games/backgammon/common_source/table.c b/games/backgammon/common_source/table.c index 5b73c31fb31..98601bd3231 100644 --- a/games/backgammon/common_source/table.c +++ b/games/backgammon/common_source/table.c @@ -1,4 +1,4 @@ -/* $OpenBSD: table.c,v 1.2 1998/03/19 11:13:27 pjanzen Exp $ */ +/* $OpenBSD: table.c,v 1.3 1999/07/31 21:57:41 pjanzen Exp $ */ /* * Copyright (c) 1980, 1993 @@ -37,13 +37,13 @@ #if 0 static char sccsid[] = "@(#)table.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: table.c,v 1.2 1998/03/19 11:13:27 pjanzen Exp $"; +static char rcsid[] = "$OpenBSD: table.c,v 1.3 1999/07/31 21:57:41 pjanzen Exp $"; #endif #endif /* not lint */ #include "back.h" -char *help2[] = { +const char *const help2[] = { " Enter moves as <s>-<f> or <s>/<r> where <s> is the starting", "position, <f> is the finishing position, and <r> is the roll.", "Remember, each die roll must be moved separately.", @@ -56,7 +56,7 @@ struct state { int newst; }; -struct state atmata[] = { +static const struct state atmata[] = { {'R', 1, 0}, {'?', 7, 0}, {'Q', 0, -3}, {'B', 8, 25}, {'9', 2, 25}, {'8', 2, 25}, {'7', 2, 25}, {'6', 2, 25}, |