aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/movecheck.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-05-05 17:42:19 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2024-05-05 17:42:19 +0200
commitd5dfd38e882c32f8d6788afb3a47e40ff34db73f (patch)
tree723f8710ec0fd0492f9be5506269c899a9713a3d /FICS/movecheck.c
parent4e179b0677c5ee49aee3b76ffc62d613740f41b3 (diff)
Reformatted add_pos()
Diffstat (limited to 'FICS/movecheck.c')
-rw-r--r--FICS/movecheck.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/FICS/movecheck.c b/FICS/movecheck.c
index ac20772..005eaf1 100644
--- a/FICS/movecheck.c
+++ b/FICS/movecheck.c
@@ -349,11 +349,12 @@ PRIVATE int legal_king_move(game_state_t * gs, int ff, int fr, int tf, int tr)
return 1;
}
-PRIVATE void add_pos(int tof, int tor, int *posf, int *posr, int *numpos)
+PRIVATE void
+add_pos(int tof, int tor, int *posf, int *posr, int *numpos)
{
- posf[*numpos] = tof;
- posr[*numpos] = tor;
- (*numpos)++;
+ posf[*numpos] = tof;
+ posr[*numpos] = tor;
+ (*numpos)++;
}
PRIVATE void