aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-29 01:29:23 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-29 01:29:23 +0100
commit2b5fd7eaa50de964fb87d22f374543da6147ac38 (patch)
tree580ea740b8b7a48ec744d6f286a50bd8c2853fcc /FICS
parentcaef86417600b54ed00224db296528afe8bfa874 (diff)
Reformatted WriteMsgFile()
Diffstat (limited to 'FICS')
-rw-r--r--FICS/playerdb.c25
1 files changed, 13 insertions, 12 deletions
diff --git a/FICS/playerdb.c b/FICS/playerdb.c
index 83bc036..31e3fcb 100644
--- a/FICS/playerdb.c
+++ b/FICS/playerdb.c
@@ -2087,20 +2087,21 @@ PRIVATE int LoadMsgRange(int p, int start, int end, textlist **Head)
}
}
-PRIVATE int WriteMsgFile (int p, textlist *Head)
+PRIVATE int
+WriteMsgFile(int p, textlist *Head)
{
- char fName[MAX_FILENAME_SIZE];
- FILE *fp;
- textlist *Cur;
+ FILE *fp;
+ char fName[MAX_FILENAME_SIZE];
+ textlist *Cur;
- GetMsgFile (p, fName);
- fp = fopen(fName, "w");
- if (fp == NULL)
- return 0;
- for (Cur = Head; Cur != NULL; Cur = Cur->next)
- fprintf(fp, "%s", Cur->text);
- fclose(fp);
- return 1;
+ GetMsgFile(p, fName);
+
+ if ((fp = fopen(fName, "w")) == NULL)
+ return 0;
+ for (Cur = Head; Cur != NULL; Cur = Cur->next)
+ fprintf(fp, "%s", Cur->text);
+ fclose(fp);
+ return 1;
}
PUBLIC int