From f2e552ba9ea473d3399e7b124077a7e4a856138b Mon Sep 17 00:00:00 2001 From: hubertf Date: Wed, 10 Feb 1999 12:29:47 +0000 Subject: 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 . Also contains two more patches, one in teachgammon/tutor.h (by Joseph) and one in common_source/fancy.c (by me). --- backgammon/backgammon/text.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'backgammon/backgammon/text.c') diff --git a/backgammon/backgammon/text.c b/backgammon/backgammon/text.c index b6685a42..27b9bb1b 100644 --- a/backgammon/backgammon/text.c +++ b/backgammon/backgammon/text.c @@ -1,4 +1,4 @@ -/* $NetBSD: text.c,v 1.5 1997/10/10 08:59:38 lukem Exp $ */ +/* $NetBSD: text.c,v 1.6 1999/02/10 12:29:47 hubertf Exp $ */ /* * Copyright (c) 1980, 1993 @@ -38,13 +38,13 @@ #if 0 static char sccsid[] = "@(#)text.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: text.c,v 1.5 1997/10/10 08:59:38 lukem Exp $"); +__RCSID("$NetBSD: text.c,v 1.6 1999/02/10 12:29:47 hubertf Exp $"); #endif #endif /* not lint */ #include "back.h" -char *instr[] = { +const char *const instr[] = { " If you did not notice by now, this program reacts to things as", "soon as you type them, without waiting for a newline. This means that", "the special characters RUBOUT, ESC, and CONTROL-D, will not perform", @@ -112,10 +112,10 @@ char *instr[] = { int text(t) - char **t; + const char *const *t; { int i; - char *s, *a; + const char *s, *a; fixtty(&noech); while (*t != 0) { -- cgit v1.2.3-56-ge451