aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-04-23 19:26:26 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2024-04-23 19:26:26 +0200
commit804224e92f34999ce883ec412f5ac09ee6aa2038 (patch)
treea29deb1fef03c317fc9f09c3f7c316194aaf51c4
parent9d57b886206d7f423bb0fffbbdae1bab24783b48 (diff)
Reformatted ExamineHistory()
-rw-r--r--FICS/obsproc.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/FICS/obsproc.c b/FICS/obsproc.c
index fd0b0f9..6b4921c 100644
--- a/FICS/obsproc.c
+++ b/FICS/obsproc.c
@@ -810,21 +810,21 @@ PRIVATE char *FindHistory2(int p, int p1,int game,char* End)
return(fileName);
}
-PRIVATE void ExamineHistory(int p, int p1, int game)
+PRIVATE void
+ExamineHistory(int p, int p1, int game)
{
- char *fileName;
+ FILE *fpGame;
+ char *fileName;
- fileName = FindHistory(p, p1, game);
- if (fileName != NULL) {
- FILE *fpGame = fopen(fileName, "r");
- if (fpGame == NULL) {
- pprintf(p, "History game %d not available for %s.\n", game, parray[p1].name);
- } else {
- ExamineStored(fpGame, p, fileName);
- fclose(fpGame);
- }
- }
- return;
+ if ((fileName = FindHistory(p, p1, game)) != NULL) {
+ if ((fpGame = fopen(fileName, "r")) == NULL) {
+ pprintf(p, "History game %d not available for %s.\n",
+ game, parray[p1].name);
+ } else {
+ ExamineStored(fpGame, p, fileName);
+ fclose(fpGame);
+ }
+ }
}
PRIVATE void