diff options
author | Paul Janzen <pjanzen@cvs.openbsd.org> | 1998-08-19 07:42:28 +0000 |
---|---|---|
committer | Paul Janzen <pjanzen@cvs.openbsd.org> | 1998-08-19 07:42:28 +0000 |
commit | ed884b9fa4509c09f0f7ab71efe57a4e83a2e055 (patch) | |
tree | ef9d859a0754785b42ea5cacb27aff54b5000315 /games/cribbage/cards.c | |
parent | f4fc9566a4d35c0cc2bf8c7f1136287d8eec8c44 (diff) |
tags, formatting, ANSI-fication, prototypes, de-typos, and the occasional
initialization, removal of unused variable, or other minor fix. Most
changes are from or inspired by NetBSD.
Diffstat (limited to 'games/cribbage/cards.c')
-rw-r--r-- | games/cribbage/cards.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/games/cribbage/cards.c b/games/cribbage/cards.c index a81bdf65e64..5c2540f5b86 100644 --- a/games/cribbage/cards.c +++ b/games/cribbage/cards.c @@ -1,3 +1,4 @@ +/* $OpenBSD: cards.c,v 1.2 1998/08/19 07:40:17 pjanzen Exp $ */ /* $NetBSD: cards.c,v 1.3 1995/03/21 15:08:41 cgd Exp $ */ /*- @@ -34,7 +35,11 @@ */ #ifndef lint +#if 0 static char sccsid[] = "@(#)cards.c 8.1 (Berkeley) 5/31/93"; +#else +static char rcsid[] = "$OpenBSD: cards.c,v 1.2 1998/08/19 07:40:17 pjanzen Exp $"; +#endif #endif /* not lint */ #include <curses.h> @@ -53,7 +58,7 @@ void makedeck(d) CARD d[]; { - register int i, j, k; + int i, j, k; i = time(NULL); i = ((i & 0xff) << 8) | ((i >> 8) & 0xff) | 1; @@ -74,7 +79,7 @@ void shuffle(d) CARD d[]; { - register int j, k; + int j, k; CARD c; for (j = CARDS; j > 0; --j) { @@ -103,7 +108,7 @@ isone(a, b, n) CARD a, b[]; int n; { - register int i; + int i; for (i = 0; i < n; i++) if (eq(a, b[i])) @@ -119,7 +124,7 @@ cremove(a, d, n) CARD a, d[]; int n; { - register int i, j; + int i, j; for (i = j = 0; i < n; i++) if (!eq(a, d[i])) @@ -134,10 +139,10 @@ cremove(a, d, n) */ void sorthand(h, n) - register CARD h[]; + CARD h[]; int n; { - register CARD *cp, *endp; + CARD *cp, *endp; CARD c; for (endp = &h[n]; h < endp - 1; h++) |