diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-11-23 12:40:49 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-11-23 12:40:49 +0100 |
commit | ce8baa9a5414027510f24cbacdb3765f609b0e41 (patch) | |
tree | 7004225a38b99030f11430da23cce62a786173df | |
parent | 59b4f6b33bfa602c4f0412623e8b76194a852de5 (diff) |
Renamed var
-rw-r--r-- | FICS/gamedb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/FICS/gamedb.c b/FICS/gamedb.c index 4437637..2e16d99 100644 --- a/FICS/gamedb.c +++ b/FICS/gamedb.c @@ -1651,15 +1651,15 @@ RemHist(char *who) who[0], who, STATS_GAMES); if ((fp = fopen(fName, "r")) != NULL) { - long int line_no = 0; + long int iter_no = 0; while (!feof(fp)) { const int ret = fscanf(fp, "%*d %*c %*d %*c %*d %19s " "%*s %*d %*d %*d %*d %*s %*s %ld", Opp, &When); if (ret != 2) { warnx("%s: fscanf() error (%s:%ld)", __func__, - fName, line_no); - line_no++; + fName, iter_no); + iter_no++; continue; } @@ -1677,7 +1677,7 @@ RemHist(char *who) } } - line_no++; + iter_no++; } fclose(fp); |