From 1f392a4b5afa2c9b7442b8574263220a9400956f Mon Sep 17 00:00:00 2001 From: Paul Janzen Date: Sat, 25 Sep 1999 15:52:22 +0000 Subject: 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'. --- games/bcd/bcd.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'games/bcd') 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'))) -- cgit v1.2.3