summaryrefslogtreecommitdiff
path: root/games/monop/deck.h
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1996-10-06 03:20:47 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1996-10-06 03:20:47 +0000
commitb833779cf25d4a06fd8f7fd2f40a31d243536d2d (patch)
tree715561cd69083e35c9d79fa8fa6ef879e97cec18 /games/monop/deck.h
parent1ad12b30140db2d0082b72aa2c38a650fec3b068 (diff)
Store the card deck using fixed sizes and network byte order
Diffstat (limited to 'games/monop/deck.h')
-rw-r--r--games/monop/deck.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/games/monop/deck.h b/games/monop/deck.h
index 5516623b8d6..47a3c6ff916 100644
--- a/games/monop/deck.h
+++ b/games/monop/deck.h
@@ -35,16 +35,16 @@
* @(#)deck.h 8.1 (Berkeley) 5/31/93
*/
-# define bool char
+# define bool int8_t
# define CC_D deck[0]
# define CH_D deck[1]
struct dk_st { /* deck description structure */
- int num_cards; /* number of cards in deck */
- int last_card; /* number of last card picked */
+ int16_t num_cards; /* number of cards in deck */
+ int16_t last_card; /* number of last card picked */
bool gojf_used; /* set if gojf card out of deck */
- long *offsets; /* offests for start of cards */
+ int32_t *offsets; /* offests for start of cards */
};
typedef struct dk_st DECK;