Subject: bin/8057: [PATCH] More backgammon(6) const fixes
To: None <gnats-bugs@gnats.netbsd.org>
From: Joseph Myers <jsm28@cam.ac.uk>
List: netbsd-bugs
Date: 07/24/1999 03:52:01
>Number:         8057
>Category:       bin
>Synopsis:       [PATCH] More backgammon(6) const fixes
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 24 03:50:02 1999
>Last-Modified:
>Originator:     Joseph S. Myers
>Organization:
Trinity College, University of Cambridge, UK
>Release:        NetBSD-current of 1999-07-22
>Environment:
[
System: Linux decomino 2.2.10 #1 Mon Jun 14 07:48:53 UTC 1999 i686 unknown
Architecture: i686
]
>Description:

Here are a couple of minor const fixes for backgammon(6) missed in
bin/6580.  The extern declarations in tutor.h already have the extra
const.

>How-To-Repeat:

>Fix:

diff -ruN backgammon/teachgammon/ttext1.c backgammon+/teachgammon/ttext1.c
--- backgammon/teachgammon/ttext1.c	Thu Feb 11 12:06:27 1999
+++ backgammon+/teachgammon/ttext1.c	Sat Jul 24 10:20:34 1999
@@ -45,8 +45,8 @@
 #include "back.h"
 #include "tutor.h"
 
-const char   *opts = " QIMRHEDSPT";
-const char   *prompt = "-->";
+const char   *const opts = " QIMRHEDSPT";
+const char   *const prompt = "-->";
 
 const char   *const list[] = {
 	"\n\n\tI\tIntroduction to Backgammon",
>Audit-Trail:
>Unformatted: