From d61396abe3ec958e8d619a3a8f9567ba90730580 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sun, 31 Dec 2023 20:32:57 +0100 Subject: Reformatted player_array_init() --- FICS/playerdb.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'FICS/playerdb.c') diff --git a/FICS/playerdb.c b/FICS/playerdb.c index 5917a74..feb5f8f 100644 --- a/FICS/playerdb.c +++ b/FICS/playerdb.c @@ -67,12 +67,11 @@ PRIVATE int get_empty_slot(void) return p_num - 1; } -PUBLIC void player_array_init() +PUBLIC void +player_array_init(void) { - int i; - - for (i = 0; i < PARRAY_SIZE; i++) - parray[i].status = PLAYER_EMPTY; + for (int i = 0; i < PARRAY_SIZE; i++) + parray[i].status = PLAYER_EMPTY; } PUBLIC void -- cgit v1.2.3