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 /fortune/unstr/unstr.c | |
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 'fortune/unstr/unstr.c')
-rw-r--r-- | fortune/unstr/unstr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fortune/unstr/unstr.c b/fortune/unstr/unstr.c index 8d52fc35..b851c40f 100644 --- a/fortune/unstr/unstr.c +++ b/fortune/unstr/unstr.c @@ -1,4 +1,4 @@ -/* $NetBSD: unstr.c,v 1.5 1999/08/21 07:02:46 simonb Exp $ */ +/* $NetBSD: unstr.c,v 1.6 1999/09/08 21:57:17 jsm Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1991, 1993\n\ #if 0 static char sccsid[] = "@(#)unstr.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: unstr.c,v 1.5 1999/08/21 07:02:46 simonb Exp $"); +__RCSID("$NetBSD: unstr.c,v 1.6 1999/09/08 21:57:17 jsm Exp $"); #endif #endif /* not lint */ @@ -140,7 +140,7 @@ order_unstr(tbl) for (i = 0; i < tbl->str_numstr; i++) { (void) fread((char *) &pos, 1, sizeof pos, Dataf); - (void) fseek(Inf, be64toh(pos), 0); + (void) fseek(Inf, be64toh(pos), SEEK_SET); if (i != 0) (void) printf("%c\n", Delimch); for (;;) { |