diff options
author | jsm <jsm@NetBSD.org> | 1999-09-08 21:57:16 +0000 |
---|---|---|
committer | jsm <jsm@NetBSD.org> | 1999-09-08 21:57:16 +0000 |
commit | 56b3b679266d099eba0ac4e8282b239c652357c3 (patch) | |
tree | 7e3a0748576fc3fd8c50331f1d419996a73538fd /monop | |
parent | 82852318e37fa7eddacc3dd162a2d16d3a7487b9 (diff) | |
download | bsdgames-darwin-56b3b679266d099eba0ac4e8282b239c652357c3.tar.gz bsdgames-darwin-56b3b679266d099eba0ac4e8282b239c652357c3.tar.zst bsdgames-darwin-56b3b679266d099eba0ac4e8282b239c652357c3.zip |
Use the symbolic names `SEEK_SET' and `O_RDONLY' where appropriate in
the games.
Diffstat (limited to 'monop')
-rw-r--r-- | monop/cards.c | 6 | ||||
-rw-r--r-- | monop/initdeck.c | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/monop/cards.c b/monop/cards.c index 489f25ee..079cc236 100644 --- a/monop/cards.c +++ b/monop/cards.c @@ -1,4 +1,4 @@ -/* $NetBSD: cards.c,v 1.8 1999/09/08 21:17:51 jsm Exp $ */ +/* $NetBSD: cards.c,v 1.9 1999/09/08 21:57:18 jsm Exp $ */ /* * Copyright (c) 1980, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)cards.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: cards.c,v 1.8 1999/09/08 21:17:51 jsm Exp $"); +__RCSID("$NetBSD: cards.c,v 1.9 1999/09/08 21:57:18 jsm Exp $"); #endif #endif /* not lint */ @@ -136,7 +136,7 @@ get_card(dp) OWN *op; do { - fseek(deckf, dp->offsets[dp->last_card], 0); + fseek(deckf, dp->offsets[dp->last_card], SEEK_SET); dp->last_card = ++(dp->last_card) % dp->num_cards; type_maj = getc(deckf); } while (dp->gojf_used && type_maj == GOJF); diff --git a/monop/initdeck.c b/monop/initdeck.c index 99b2fb2a..e2cda3b7 100644 --- a/monop/initdeck.c +++ b/monop/initdeck.c @@ -1,4 +1,4 @@ -/* $NetBSD: initdeck.c,v 1.8 1999/09/08 21:17:52 jsm Exp $ */ +/* $NetBSD: initdeck.c,v 1.9 1999/09/08 21:57:18 jsm Exp $ */ /* * Copyright (c) 1980, 1993 @@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\ #if 0 static char sccsid[] = "@(#)initdeck.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: initdeck.c,v 1.8 1999/09/08 21:17:52 jsm Exp $"); +__RCSID("$NetBSD: initdeck.c,v 1.9 1999/09/08 21:57:18 jsm Exp $"); #endif #endif /* not lint */ @@ -101,7 +101,7 @@ main(ac, av) */ CC_D.offsets = (off_t *)calloc(CC_D.num_cards + 1, sizeof (off_t)); CH_D.offsets = (off_t *)calloc(CH_D.num_cards + 1, sizeof (off_t)); - fseek(inf, 0L, 0); + fseek(inf, 0L, SEEK_SET); if ((outf = fopen(outfile, "w")) == NULL) { perror(outfile); exit(0); @@ -122,7 +122,7 @@ main(ac, av) putem(); fclose(inf); - fseek(outf, 0, 0L); + fseek(outf, 0, SEEK_SET); /* number of community chest cards first... */ nc = htobe32(CC_D.num_cards); |