diff options
author | hubertf <hubertf@NetBSD.org> | 1999-07-14 17:23:53 +0000 |
---|---|---|
committer | hubertf <hubertf@NetBSD.org> | 1999-07-14 17:23:53 +0000 |
commit | b09314c8a14ae0411499270e4e0e63c98ef0fbc2 (patch) | |
tree | 92dbb71b549eb09c0e95decd7bcc73b3e72997ea /boggle | |
parent | d1b7ca1371db78422c0683528ce97f1302056524 (diff) | |
download | bsdgames-darwin-b09314c8a14ae0411499270e4e0e63c98ef0fbc2.tar.gz bsdgames-darwin-b09314c8a14ae0411499270e4e0e63c98ef0fbc2.tar.zst bsdgames-darwin-b09314c8a14ae0411499270e4e0e63c98ef0fbc2.zip |
From PR 7988 by Joseph Myers <jsm28@cam.ac.uk>: use the symbolic
name SEEK_SET for values which end up as the third argument of
fseek(), rather than a hard-coded 0.
Diffstat (limited to 'boggle')
-rw-r--r-- | boggle/boggle/bog.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/boggle/boggle/bog.c b/boggle/boggle/bog.c index 43bd0c5a..232e4aac 100644 --- a/boggle/boggle/bog.c +++ b/boggle/boggle/bog.c @@ -1,4 +1,4 @@ -/* $NetBSD: bog.c,v 1.9 1998/08/30 09:19:36 veego Exp $ */ +/* $NetBSD: bog.c,v 1.10 1999/07/14 17:23:53 hubertf Exp $ */ /*- * Copyright (c) 1993 @@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1993\n\ #if 0 static char sccsid[] = "@(#)bog.c 8.2 (Berkeley) 5/4/95"; #else -__RCSID("$NetBSD: bog.c,v 1.9 1998/08/30 09:19:36 veego Exp $"); +__RCSID("$NetBSD: bog.c,v 1.10 1999/07/14 17:23:53 hubertf Exp $"); #endif #endif /* not lint */ @@ -501,7 +501,7 @@ validword(word) char *q, *w; j = word[0] - 'a'; - if (dictseek(dictfp, dictindex[j].start, 0) < 0) { + if (dictseek(dictfp, dictindex[j].start, SEEK_SET) < 0) { (void) fprintf(stderr, "Seek error\n"); cleanup(); exit(1); @@ -541,7 +541,7 @@ checkdict() prevch ='a'; qi = &wordpath[MAXWORDLEN + 1]; - (void) dictseek(dictfp, 0L, 0); + (void) dictseek(dictfp, 0L, SEEK_SET); while ((w = nextword(dictfp)) != NULL) { if (wordlen < minlength) continue; @@ -568,7 +568,7 @@ checkdict() */ if (i != previndex + 1) { if (dictseek(dictfp, - dictindex[i].start, 0) < 0) { + dictindex[i].start, SEEK_SET) < 0) { warnx("seek error in checkdict()"); cleanup(); exit(1); |