summaryrefslogtreecommitdiffstats
path: root/tetris/scores.c
diff options
context:
space:
mode:
authorwiz <wiz@NetBSD.org>2002-06-02 22:17:37 +0000
committerwiz <wiz@NetBSD.org>2002-06-02 22:17:37 +0000
commit626903439b2df287fd31ab00fa78eea25ae0a22d (patch)
tree43b8d11e21acacde6c2204139c298b027d542b38 /tetris/scores.c
parent4506ee6421a65ebf465cb3e1124f0ba604dbcb20 (diff)
downloadbsdgames-darwin-626903439b2df287fd31ab00fa78eea25ae0a22d.tar.gz
bsdgames-darwin-626903439b2df287fd31ab00fa78eea25ae0a22d.tar.zst
bsdgames-darwin-626903439b2df287fd31ab00fa78eea25ae0a22d.zip
de-register
Diffstat (limited to 'tetris/scores.c')
-rw-r--r--tetris/scores.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/tetris/scores.c b/tetris/scores.c
index dd1eab79..8d571dec 100644
--- a/tetris/scores.c
+++ b/tetris/scores.c
@@ -1,4 +1,4 @@
-/* $NetBSD: scores.c,v 1.10 2000/01/21 02:10:56 jsm Exp $ */
+/* $NetBSD: scores.c,v 1.11 2002/06/02 22:17:38 wiz Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -152,8 +152,8 @@ void
savescore(level)
int level;
{
- register struct highscore *sp;
- register int i;
+ struct highscore *sp;
+ int i;
int change;
FILE *sf;
const char *me;
@@ -218,9 +218,9 @@ savescore(level)
static char *
thisuser()
{
- register const char *p;
- register struct passwd *pw;
- register size_t l;
+ const char *p;
+ struct passwd *pw;
+ size_t l;
static char u[sizeof(scores[0].hs_name)];
if (u[0])
@@ -251,8 +251,8 @@ static int
cmpscores(x, y)
const void *x, *y;
{
- register const struct highscore *a, *b;
- register long l;
+ const struct highscore *a, *b;
+ long l;
a = x;
b = y;
@@ -279,17 +279,17 @@ cmpscores(x, y)
*/
static int
checkscores(hs, num)
- register struct highscore *hs;
+ struct highscore *hs;
int num;
{
- register struct highscore *sp;
- register int i, j, k, numnames;
+ struct highscore *sp;
+ int i, j, k, numnames;
int levelfound[NLEVELS];
struct peruser {
char *name;
int times;
} count[NUMSPOTS];
- register struct peruser *pu;
+ struct peruser *pu;
/*
* Sort so that highest totals come first.
@@ -355,8 +355,8 @@ void
showscores(level)
int level;
{
- register struct highscore *sp;
- register int i, n, c;
+ struct highscore *sp;
+ int i, n, c;
const char *me;
int levelfound[NLEVELS];
@@ -407,11 +407,11 @@ showscores(level)
static void
printem(level, offset, hs, n, me)
int level, offset;
- register struct highscore *hs;
- register int n;
+ struct highscore *hs;
+ int n;
const char *me;
{
- register struct highscore *sp;
+ struct highscore *sp;
int nrows, row, col, item, i, highlight;
char buf[100];
#define TITLE "Rank Score Name (points/level)"