diff options
author | Paul Janzen <pjanzen@cvs.openbsd.org> | 1999-09-25 15:52:22 +0000 |
---|---|---|
committer | Paul Janzen <pjanzen@cvs.openbsd.org> | 1999-09-25 15:52:22 +0000 |
commit | 1f392a4b5afa2c9b7442b8574263220a9400956f (patch) | |
tree | 86df7545a070242cc88b1c37212ee0954992be45 /games/bcd | |
parent | 14e587faa87cde5eab2f480ee4d6f8e56f18a4a1 (diff) |
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.c | 10 |
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'))) |