summaryrefslogtreecommitdiffstats
path: root/games/monop/deck.h
diff options
context:
space:
mode:
authortholo <tholo@openbsd.org>1996-10-06 03:20:44 +0000
committertholo <tholo@openbsd.org>1996-10-06 03:20:44 +0000
commit6160caa11a6693761e456ea5b4a8ca85285cd322 (patch)
tree3c2e6fc2e29ab5deb0a5882384de8637a3ae4d5b /games/monop/deck.h
parentuse wd.h not wdc.h. Teach booting logic about wd and acd (diff)
downloadwireguard-openbsd-6160caa11a6693761e456ea5b4a8ca85285cd322.tar.xz
wireguard-openbsd-6160caa11a6693761e456ea5b4a8ca85285cd322.zip
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;