summaryrefslogtreecommitdiffstats
path: root/monop/cards.c
diff options
context:
space:
mode:
Diffstat (limited to 'monop/cards.c')
-rw-r--r--monop/cards.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/monop/cards.c b/monop/cards.c
index 0064c4ae..5768a359 100644
--- a/monop/cards.c
+++ b/monop/cards.c
@@ -1,4 +1,4 @@
-/* $NetBSD: cards.c,v 1.18 2008/02/23 19:09:00 dholland Exp $ */
+/* $NetBSD: cards.c,v 1.19 2008/02/23 19:49:21 dholland Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)cards.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: cards.c,v 1.18 2008/02/23 19:09:00 dholland Exp $");
+__RCSID("$NetBSD: cards.c,v 1.19 2008/02/23 19:49:21 dholland Exp $");
#endif
#endif /* not lint */
@@ -106,7 +106,7 @@ set_up(dp)
/* convert offsets from big-endian byte order */
for (i = 0; i < dp->num_cards; i++)
BE64TOH(dp->offsets[i]);
- dp->last_card = 0;
+ dp->top_card = 0;
dp->gojf_used = FALSE;
for (i = 0; i < dp->num_cards; i++) {
off_t temp;
@@ -132,8 +132,8 @@ get_card(dp)
OWN *op;
do {
- fseek(deckf, dp->offsets[dp->last_card], SEEK_SET);
- dp->last_card = ++(dp->last_card) % dp->num_cards;
+ fseek(deckf, dp->offsets[dp->top_card], SEEK_SET);
+ dp->top_card = ++(dp->top_card) % dp->num_cards;
type_maj = getc(deckf);
} while (dp->gojf_used && type_maj == GOJF);
type_min = getc(deckf);