Subject: bin/6076: [PATCH] Backgammon unused functions
To: None <gnats-bugs@gnats.netbsd.org>
From: Joseph Myers <jsm@octomino.demon.co.uk>
List: netbsd-bugs
Date: 08/31/1998 20:20:19
>Number: 6076
>Category: bin
>Synopsis: [PATCH] Backgammon unused functions
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Mon Aug 31 13:35:01 1998
>Last-Modified:
>Originator: Joseph Samuel Myers
>Organization:
Trinity College, University of Cambridge, UK
>Release: NetBSD-current of 1998-08-30
>Environment:
[
System: Linux octomino 2.0.35 #1 Wed Aug 12 15:54:21 UTC 1998 i586 unknown
Architecture: i586
]
>Description:
The game backgammon contains two functions that are not used, strset()
and tos(). The appended patch removes them.
>How-To-Repeat:
>Fix:
diff -ruN backgammon/common_source/back.h backgammon+2/common_source/back.h
--- backgammon/common_source/back.h Tue Oct 14 11:09:11 1997
+++ backgammon+2/common_source/back.h Mon Aug 31 19:53:30 1998
@@ -178,9 +178,7 @@
void roll __P((void));
int rsetbrd __P((void));
void save __P((int));
-void strset __P((char *, char *));
int text __P((char **));
-void tos __P((void));
void wrboard __P((void));
void wrbsub __P((void));
void wrhit __P((int));
diff -ruN backgammon/common_source/fancy.c backgammon+2/common_source/fancy.c
--- backgammon/common_source/fancy.c Tue Oct 14 11:09:12 1997
+++ backgammon+2/common_source/fancy.c Mon Aug 31 19:54:26 1998
@@ -586,13 +586,6 @@
}
void
-tos()
-{ /* home cursor */
- curmove(0, 0);
-}
-
-
-void
fancyc(c)
char c; /* character to output */
{
diff -ruN backgammon/common_source/subs.c backgammon+2/common_source/subs.c
--- backgammon/common_source/subs.c Fri Oct 10 11:22:13 1997
+++ backgammon+2/common_source/subs.c Mon Aug 31 19:55:26 1998
@@ -74,13 +74,6 @@
}
void
-strset(s1, s2)
- char *s1, *s2;
-{
- while ((*s1++ = *s2++) != '\0');
-}
-
-void
addbuf(c)
int c;
{
>Audit-Trail:
>Unformatted: