From 56b3b679266d099eba0ac4e8282b239c652357c3 Mon Sep 17 00:00:00 2001 From: jsm Date: Wed, 8 Sep 1999 21:57:16 +0000 Subject: Use the symbolic names `SEEK_SET' and `O_RDONLY' where appropriate in the games. --- fortune/unstr/unstr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fortune/unstr/unstr.c') 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 (;;) { -- cgit v1.2.3