From 804224e92f34999ce883ec412f5ac09ee6aa2038 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Tue, 23 Apr 2024 19:26:26 +0200 Subject: Reformatted ExamineHistory() --- FICS/obsproc.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'FICS') 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 -- cgit v1.2.3