diff options
author | 1999-02-10 12:29:47 +0000 | |
---|---|---|
committer | 1999-02-10 12:29:47 +0000 | |
commit | f2e552ba9ea473d3399e7b124077a7e4a856138b (patch) | |
tree | ce3f13ceac941baa50c07a090d8cbd73be7fda90 /backgammon/teachgammon/teach.c | |
parent | 19bd733c3aad11dcfb4bbcf06abf79ff64442032 (diff) | |
download | bsdgames-darwin-f2e552ba9ea473d3399e7b124077a7e4a856138b.tar.gz bsdgames-darwin-f2e552ba9ea473d3399e7b124077a7e4a856138b.tar.zst bsdgames-darwin-f2e552ba9ea473d3399e7b124077a7e4a856138b.zip |
The patch below makes the game backgammon(6) use `const' where
appropriate. It also removes some obsolete, unused code to check the
number of users on the system (obsoleted by dm); removes a prototype
for an unused function that was removed earlier; and removes a control
character from one message that was I think intended to clear the
screen on some particular terminal (though I can't find the comment to
that effect in any of the BSD source trees I have handy) but no longer
serves any useful purpose.
From PR 6580 by Joseph Myers <jsm28@cam.ac.uk>.
Also contains two more patches, one in teachgammon/tutor.h (by Joseph)
and one in common_source/fancy.c (by me).
Diffstat (limited to 'backgammon/teachgammon/teach.c')
-rw-r--r-- | backgammon/teachgammon/teach.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/backgammon/teachgammon/teach.c b/backgammon/teachgammon/teach.c index 146f4a72..c6c7c30a 100644 --- a/backgammon/teachgammon/teach.c +++ b/backgammon/teachgammon/teach.c @@ -1,4 +1,4 @@ -/* $NetBSD: teach.c,v 1.7 1998/09/15 13:43:35 frueauf Exp $ */ +/* $NetBSD: teach.c,v 1.8 1999/02/10 12:29:48 hubertf Exp $ */ /* * Copyright (c) 1980, 1993 @@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\ #if 0 static char sccsid[] = "@(#)teach.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: teach.c,v 1.7 1998/09/15 13:43:35 frueauf Exp $"); +__RCSID("$NetBSD: teach.c,v 1.8 1999/02/10 12:29:48 hubertf Exp $"); #endif #endif /* not lint */ @@ -52,7 +52,7 @@ __RCSID("$NetBSD: teach.c,v 1.7 1998/09/15 13:43:35 frueauf Exp $"); extern speed_t ospeed; /* tty output speed for termlib */ -char *helpm[] = { +const char *const helpm[] = { "\nEnter a space or newline to roll, or", " b to display the board", " d to double", @@ -60,7 +60,7 @@ char *helpm[] = { 0 }; -char *contin[] = { +const char *const contin[] = { "", 0 }; |