diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2023-12-31 13:30:02 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2023-12-31 13:30:02 +0100 |
commit | aa5b3f1a761fcf005a073d041403a7290d39e4eb (patch) | |
tree | e3eab7b7a88af44d1d7e72976204bdc381bd89ef /FICS/playerdb.c | |
parent | 1f68d80a16d56f39e272a4504f33208e24ded820 (diff) |
Reformatted functions
Diffstat (limited to 'FICS/playerdb.c')
-rw-r--r-- | FICS/playerdb.c | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/FICS/playerdb.c b/FICS/playerdb.c index 7f9cd22..64955b9 100644 --- a/FICS/playerdb.c +++ b/FICS/playerdb.c @@ -1914,20 +1914,24 @@ PUBLIC int player_simul_over(int p, int g, int result) return 0; } -PRIVATE void GetMsgFile (int p, char *fName) +PRIVATE void +GetMsgFile(int p, char *fName) { - sprintf(fName, "%s/player_data/%c/%s.%s", stats_dir, parray[p].login[0], - parray[p].login, STATS_MESSAGES); - } + sprintf(fName, "%s/player_data/%c/%s.%s", stats_dir, parray[p].login[0], + parray[p].login, STATS_MESSAGES); +} -PUBLIC int player_num_messages(int p) +PUBLIC int +player_num_messages(int p) { - char fname[MAX_FILENAME_SIZE]; + char fname[MAX_FILENAME_SIZE]; - if (!parray[p].registered) - return 0; - GetMsgFile (p, fname); - return lines_file(fname); + if (!parray[p].registered) + return 0; + + GetMsgFile(p, fname); + + return lines_file(fname); } PUBLIC int |