From ce8baa9a5414027510f24cbacdb3765f609b0e41 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sat, 23 Nov 2024 12:40:49 +0100 Subject: Renamed var --- FICS/gamedb.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'FICS') 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); -- cgit v1.2.3