From c8e580c2a5b68052cc454ad199d30bf9ff532a11 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Tue, 2 Apr 2024 22:03:34 +0200 Subject: Reformatted GetRankFileName() --- FICS/ratings.c | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) (limited to 'FICS') diff --git a/FICS/ratings.c b/FICS/ratings.c index d4b4bc8..a6dce61 100644 --- a/FICS/ratings.c +++ b/FICS/ratings.c @@ -968,21 +968,22 @@ PUBLIC int DisplayRank(int p, param_list param, int showComputers) } } -PRIVATE int GetRankFileName(char *out, int type) +PRIVATE int +GetRankFileName(char *out, int type) { - switch (type) { - case TYPE_BLITZ: - sprintf(out, "%s/rank.blitz", sdir); - return type; - case TYPE_STAND: - sprintf(out, "%s/rank.std", sdir); - return type; - case TYPE_WILD: - sprintf(out, "%s/rank.wild", sdir); - return type; - default: - return -1; - } + switch (type) { + case TYPE_BLITZ: + sprintf(out, "%s/rank.blitz", sdir); + return type; + case TYPE_STAND: + sprintf(out, "%s/rank.std", sdir); + return type; + case TYPE_WILD: + sprintf(out, "%s/rank.wild", sdir); + return type; + default: + return -1; + } } PUBLIC void -- cgit v1.2.3