summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@cvs.openbsd.org>2007-09-10 14:29:54 +0000
committerTobias Stoeckmann <tobias@cvs.openbsd.org>2007-09-10 14:29:54 +0000
commit4bb6947b738392d059ccec81a601802f2a3f67e1 (patch)
tree6a47a9a7c15a9808ef0d3524f9dd977949038843 /games
parente617d3130f4ee9ff3df5781cfc30d5a8c8d9a52c (diff)
Proper use of fseek/fseeko macros.
OK joris@, otto@
Diffstat (limited to 'games')
-rw-r--r--games/fortune/fortune/fortune.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/games/fortune/fortune/fortune.c b/games/fortune/fortune/fortune.c
index 7030bd8eac6..7f0d3e874a4 100644
--- a/games/fortune/fortune/fortune.c
+++ b/games/fortune/fortune/fortune.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fortune.c,v 1.24 2007/06/26 17:51:28 moritz Exp $ */
+/* $OpenBSD: fortune.c,v 1.25 2007/09/10 14:29:53 tobias Exp $ */
/* $NetBSD: fortune.c,v 1.8 1995/03/23 08:28:40 cgd Exp $ */
/*-
@@ -43,7 +43,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)fortune.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$OpenBSD: fortune.c,v 1.24 2007/06/26 17:51:28 moritz Exp $";
+static char rcsid[] = "$OpenBSD: fortune.c,v 1.25 2007/09/10 14:29:53 tobias Exp $";
#endif
#endif /* not lint */
@@ -246,7 +246,7 @@ display(FILEDESC *fp)
char line[BUFSIZ];
open_fp(fp);
- (void) fseek(fp->inf, (long)Seekpts[0], 0);
+ (void) fseek(fp->inf, (long)Seekpts[0], SEEK_SET);
for (Fort_len = 0; fgets(line, sizeof line, fp->inf) != NULL &&
!STR_ENDSTRING(line, fp->tbl); Fort_len++) {
if (fp->tbl.str_flags & STR_ROTATED)
@@ -274,7 +274,7 @@ fortlen(void)
nchar = (Seekpts[1] - Seekpts[0] <= SLEN);
else {
open_fp(Fortfile);
- (void) fseek(Fortfile->inf, (long)Seekpts[0], 0);
+ (void) fseek(Fortfile->inf, (long)Seekpts[0], SEEK_SET);
nchar = 0;
while (fgets(line, sizeof line, Fortfile->inf) != NULL &&
!STR_ENDSTRING(line, Fortfile->tbl))