From ad441e867d0a153fd034abdefc3cb5b73bf2207a Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sun, 24 Dec 2023 00:03:41 +0100 Subject: Reformatted append_holding_display() --- FICS/board.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'FICS/board.c') diff --git a/FICS/board.c b/FICS/board.c index 8e23ac8..c65ee19 100644 --- a/FICS/board.c +++ b/FICS/board.c @@ -164,15 +164,16 @@ PRIVATE char *append_holding_machine(char *buf, int g, int c, int p) return buf; } -PRIVATE char *append_holding_display(char *buf, game_state_t *gs, int white) +PRIVATE char * +append_holding_display(char *buf, game_state_t *gs, int white) { - if (white) - strcat(buf, "White holding: ["); - else - strcat(buf, "Black holding: ["); - strcat(buf, holding_str(gs->holding[white ? 0 : 1])); - strcat(buf, "]\n"); - return buf; + if (white) + strcat(buf, "White holding: ["); + else + strcat(buf, "Black holding: ["); + strcat(buf, holding_str(gs->holding[white ? 0 : 1])); + strcat(buf, "]\n"); + return buf; } PUBLIC void -- cgit v1.2.3