diff options
| author | Markus Uhlin <markus@nifty-networks.net> | 2026-03-11 20:43:50 +0100 |
|---|---|---|
| committer | Markus Uhlin <markus@nifty-networks.net> | 2026-03-11 20:43:50 +0100 |
| commit | f9c158f702b5b28172704da77b7f668cbfe6ed8a (patch) | |
| tree | a072b416ffa3bf86a984abd1529c1ca92aa5a0f9 /FICS/ratings.c | |
| parent | 494425052bdc2d2553937a3af68f7364433c1bb4 (diff) | |
PositionFilePtr: replaced rewind() with fseek()
Diffstat (limited to 'FICS/ratings.c')
| -rw-r--r-- | FICS/ratings.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/FICS/ratings.c b/FICS/ratings.c index c089d65..074b050 100644 --- a/FICS/ratings.c +++ b/FICS/ratings.c @@ -1712,9 +1712,9 @@ PositionFilePtr(FILE *fp, int count, int *last, int *nTied, int showComp) rating = nGames = is_computer = 0; errno = 0; - rewind(fp); - if (errno) { - warn("%s: rewind", __func__); + + if (fseek(fp, 0L, SEEK_SET) == -1) { + warn("%s: fseek", __func__); return; } |
