From e161b9e4bf0108c71f3326e11615f0e00f7c98d8 Mon Sep 17 00:00:00 2001
From: Markus Uhlin <markus@nifty-networks.net>
Date: Sat, 30 Mar 2024 10:36:03 +0100
Subject: Reformatted functions

---
 FICS/gameproc.c | 51 ++++++++++++++++++++++++++++-----------------------
 1 file changed, 28 insertions(+), 23 deletions(-)

(limited to 'FICS')

diff --git a/FICS/gameproc.c b/FICS/gameproc.c
index 3dd6ce3..9b16a1e 100644
--- a/FICS/gameproc.c
+++ b/FICS/gameproc.c
@@ -1704,34 +1704,39 @@ PUBLIC int com_simpass(int p, param_list param)
   return COM_OK;
 }
 
-PUBLIC int com_simabort(int p, param_list param)
+PUBLIC int
+com_simabort(int p, param_list param)
 {
-  if (!parray[p].simul_info.numBoards) {
-    pprintf(p, "You are not giving a simul.\n");
-    return COM_OK;
-  }
-  player_decline_offers(p, -1, -PEND_SIMUL);
-  game_ended(parray[p].simul_info.boards[parray[p].simul_info.onBoard],
-	     WHITE, END_ABORT);
-  return COM_OK;
+	if (!parray[p].simul_info.numBoards) {
+		pprintf(p, "You are not giving a simul.\n");
+		return COM_OK;
+	}
+
+	player_decline_offers(p, -1, -PEND_SIMUL);
+	game_ended(parray[p].simul_info.boards[parray[p].simul_info.onBoard],
+	    WHITE, END_ABORT);
+
+	return COM_OK;
 }
 
-PUBLIC int com_simallabort(int p, param_list param)
+PUBLIC int
+com_simallabort(int p, param_list param)
 {
-  int i;
+	if (!parray[p].simul_info.numBoards) {
+		pprintf(p, "You are not giving a simul.\n");
+		return COM_OK;
+	}
 
-  if (!parray[p].simul_info.numBoards) {
-    pprintf(p, "You are not giving a simul.\n");
-    return COM_OK;
-  }
-  player_decline_offers(p, -1, -PEND_SIMUL);
-  for (i = 0; i < parray[p].simul_info.numBoards; i++) {
-    if (parray[p].simul_info.boards[i] >= 0) {
-      game_ended(parray[p].simul_info.boards[i],
-		 WHITE, END_ABORT);
-    }
-  }
-  return COM_OK;
+	player_decline_offers(p, -1, -PEND_SIMUL);
+
+	for (int i = 0; i < parray[p].simul_info.numBoards; i++) {
+		if (parray[p].simul_info.boards[i] >= 0) {
+			game_ended(parray[p].simul_info.boards[i], WHITE,
+			    END_ABORT);
+		}
+	}
+
+	return COM_OK;
 }
 
 PUBLIC int
-- 
cgit v1.2.3