summaryrefslogtreecommitdiffstats
path: root/games/bcd
diff options
context:
space:
mode:
authorpjanzen <pjanzen@openbsd.org>1999-09-25 15:52:09 +0000
committerpjanzen <pjanzen@openbsd.org>1999-09-25 15:52:09 +0000
commit7faebae914ae5fcbe43793fc8e0d807eed214ffb (patch)
treeb212ba9674e2ff02310c62c7eb202a09e3ac52dd /games/bcd
parentcurrent -> currently; pointed out by Adam Rogoyski <rogoyski@cs.utexas.edu> (diff)
downloadwireguard-openbsd-7faebae914ae5fcbe43793fc8e0d807eed214ffb.tar.xz
wireguard-openbsd-7faebae914ae5fcbe43793fc8e0d807eed214ffb.zip
Tidying and minor changes from or based on jsm28@cam.ac.uk's work for the
Linux bsd-games package and NetBSD. Mainly using 'const'.
Diffstat (limited to 'games/bcd')
-rw-r--r--games/bcd/bcd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/games/bcd/bcd.c b/games/bcd/bcd.c
index f6e08871897..44bb47462fc 100644
--- a/games/bcd/bcd.c
+++ b/games/bcd/bcd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bcd.c,v 1.5 1998/08/19 07:40:15 pjanzen Exp $ */
+/* $OpenBSD: bcd.c,v 1.6 1999/09/25 15:52:09 pjanzen Exp $ */
/* $NetBSD: bcd.c,v 1.6 1995/04/24 12:22:23 cgd Exp $ */
/*
@@ -47,7 +47,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)bcd.c 8.2 (Berkeley) 3/20/94";
#else
-static char rcsid[] = "$OpenBSD: bcd.c,v 1.5 1998/08/19 07:40:15 pjanzen Exp $";
+static char rcsid[] = "$OpenBSD: bcd.c,v 1.6 1999/09/25 15:52:09 pjanzen Exp $";
#endif
#endif /* not lint */
@@ -160,9 +160,9 @@ void
printcard(str)
char *str;
{
- static char rowchars[] = " 123456789";
- register int i, row;
- register char *p;
+ static const char rowchars[] = " 123456789";
+ int i, row;
+ char *p;
/* ruthlessly remove newlines and truncate at 48 characters. */
if ((p = strchr(str, '\n')))