aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/comproc.c
diff options
context:
space:
mode:
Diffstat (limited to 'FICS/comproc.c')
-rw-r--r--FICS/comproc.c42
1 files changed, 22 insertions, 20 deletions
diff --git a/FICS/comproc.c b/FICS/comproc.c
index a5b47ab..535192a 100644
--- a/FICS/comproc.c
+++ b/FICS/comproc.c
@@ -1004,27 +1004,29 @@ PRIVATE int light_cmp(const void *pp1, const void *pp2)
return strcmp(parray[p1].login, parray[p2].login);
}
-PRIVATE int stand_cmp(const void *pp1, const void *pp2)
+PRIVATE int
+stand_cmp(const void *pp1, const void *pp2)
{
- register int p1 = *(int *) pp1;
- register int p2 = *(int *) pp2;
- if (parray[p1].status != PLAYER_PROMPT) {
- if (parray[p2].status != PLAYER_PROMPT)
- return 0;
- else
- return -1;
- }
- if (parray[p2].status != PLAYER_PROMPT)
- return 1;
- if (parray[p1].s_stats.rating > parray[p2].s_stats.rating)
- return -1;
- if (parray[p1].s_stats.rating < parray[p2].s_stats.rating)
- return 1;
- if (parray[p1].registered > parray[p2].registered)
- return -1;
- if (parray[p1].registered < parray[p2].registered)
- return 1;
- return strcmp(parray[p1].login, parray[p2].login);
+ register int p1 = *(int *) pp1;
+ register int p2 = *(int *) pp2;
+
+ if (parray[p1].status != PLAYER_PROMPT) {
+ if (parray[p2].status != PLAYER_PROMPT)
+ return 0;
+ else
+ return -1;
+ }
+ if (parray[p2].status != PLAYER_PROMPT)
+ return 1;
+ if (parray[p1].s_stats.rating > parray[p2].s_stats.rating)
+ return -1;
+ if (parray[p1].s_stats.rating < parray[p2].s_stats.rating)
+ return 1;
+ if (parray[p1].registered > parray[p2].registered)
+ return -1;
+ if (parray[p1].registered < parray[p2].registered)
+ return 1;
+ return strcmp(parray[p1].login, parray[p2].login);
}
PRIVATE int