aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/obsproc.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2025-01-18 21:39:03 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2025-01-18 21:39:03 +0100
commitf01c3ed792ae001c08ef94689b078d679b6c3a02 (patch)
tree14087e4f23b7fdde3635574cd6d0779b7e8f7b83 /FICS/obsproc.c
parent19c3f72ac5e05928902ca80b799eed5be015a3b7 (diff)
Fixed -Wshadow
Diffstat (limited to 'FICS/obsproc.c')
-rw-r--r--FICS/obsproc.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/FICS/obsproc.c b/FICS/obsproc.c
index af8bf2a..61adc4d 100644
--- a/FICS/obsproc.c
+++ b/FICS/obsproc.c
@@ -954,7 +954,7 @@ ExamineAdjourned(int p, int p1, int p2)
}
PRIVATE char *
-FindHistory(int p, int p1, int game)
+FindHistory(int p, int p1, int p_game)
{
FILE *fpHist;
int index = 0;
@@ -976,10 +976,10 @@ FindHistory(int p, int p1, int game)
"%*d %*s %*s %ld", &index, &when);
if (ret != 2)
warn("%s: %s: corrupt", __func__, &fileName[0]);
- } while (!feof(fpHist) && index != game);
+ } while (!feof(fpHist) && index != p_game);
if (feof(fpHist)) {
- pprintf(p, "There is no history game %d for %s.\n", game,
+ pprintf(p, "There is no history game %d for %s.\n", p_game,
parray[p1].name);
fclose(fpHist);
return NULL;
@@ -993,7 +993,7 @@ FindHistory(int p, int p1, int game)
}
PRIVATE char *
-FindHistory2(int p, int p1, int game, char *End)
+FindHistory2(int p, int p1, int p_game, char *End)
{
FILE *fpHist;
int index = 0;
@@ -1015,10 +1015,10 @@ FindHistory2(int p, int p1, int game, char *End)
"%*d %*s %s %ld", &index, End, &when);
if (ret != 3)
warn("%s: %s: corrupt", __func__, &fileName[0]);
- } while (!feof(fpHist) && index != game);
+ } while (!feof(fpHist) && index != p_game);
if (feof(fpHist)) {
- pprintf(p, "There is no history game %d for %s.\n", game,
+ pprintf(p, "There is no history game %d for %s.\n", p_game,
parray[p1].name);
fclose(fpHist);
return NULL;
@@ -1032,15 +1032,15 @@ FindHistory2(int p, int p1, int game, char *End)
}
PRIVATE void
-ExamineHistory(int p, int p1, int game)
+ExamineHistory(int p, int p1, int p_game)
{
FILE *fpGame;
char *fileName;
- if ((fileName = FindHistory(p, p1, game)) != NULL) {
+ if ((fileName = FindHistory(p, p1, p_game)) != NULL) {
if ((fpGame = fopen(fileName, "r")) == NULL) {
pprintf(p, "History game %d not available for %s.\n",
- game, parray[p1].name);
+ p_game, parray[p1].name);
} else {
ExamineStored(fpGame, p, fileName);
fclose(fpGame);