From 2a59f55e8c0039374ce9f7bd55a25af95609b321 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Mon, 23 Mar 2026 20:17:39 +0100 Subject: Moved fprintf() calls and fixed hardcoded function names --- FICS/board.c | 2 ++ FICS/command.c | 2 ++ FICS/eco.c | 2 ++ FICS/ficsmain.c | 8 +------- FICS/playerdb.c | 2 ++ FICS/ratings.c | 1 + 6 files changed, 10 insertions(+), 7 deletions(-) diff --git a/FICS/board.c b/FICS/board.c index a119604..589fca9 100644 --- a/FICS/board.c +++ b/FICS/board.c @@ -1379,6 +1379,8 @@ wild_update(int style) PUBLIC void wild_init(void) { + (void) fprintf(stderr, "FICS: %s()\n", __func__); + wild_update(1); wild_update(2); wild_update(3); diff --git a/FICS/command.c b/FICS/command.c index 1cdd99d..3a8ddbf 100644 --- a/FICS/command.c +++ b/FICS/command.c @@ -1307,6 +1307,8 @@ commands_init(void) int fd[2]; int i = 0; + (void) fprintf(stderr, "FICS: %s()\n", __func__); + fp = afp = NULL; snprintf(fname, sizeof fname, "%s/commands", comhelp_dir); diff --git a/FICS/eco.c b/FICS/eco.c index 3598943..48017fb 100644 --- a/FICS/eco.c +++ b/FICS/eco.c @@ -330,6 +330,8 @@ LONG_init(void) PUBLIC void BookInit(void) { + (void) fprintf(stderr, "FICS: %s()\n", __func__); + ECO_init(); NIC_init(); LONG_init(); diff --git a/FICS/ficsmain.c b/FICS/ficsmain.c index 5d2fe0b..2ce00a4 100644 --- a/FICS/ficsmain.c +++ b/FICS/ficsmain.c @@ -336,21 +336,15 @@ main(int argc, char *argv[]) (void) fprintf(stderr, "FICS: Initialized on port %d at %s.\n", port, strltime(&startuptime)); - (void) fprintf(stderr, "FICS: commands_init()\n"); - commands_init(); - (void) fprintf(stderr, "FICS: rating_init()\n"); + commands_init(); rating_init(); - - (void) fprintf(stderr, "FICS: wild_init()\n"); wild_init(); #ifndef IGNORE_ECO - (void) fprintf(stderr, "FICS: book init()\n"); BookInit(); #endif - (void) fprintf(stderr, "FICS: player_array_init()\n"); player_array_init(); (void) fprintf(stderr, "FICS: player_init(withConsole=%d)\n", diff --git a/FICS/playerdb.c b/FICS/playerdb.c index 5a6e2e7..03450c6 100644 --- a/FICS/playerdb.c +++ b/FICS/playerdb.c @@ -140,6 +140,8 @@ get_empty_slot(void) PUBLIC void player_array_init(void) { + (void) fprintf(stderr, "FICS: %s()\n", __func__); + for (int i = 0; i < PARRAY_SIZE; i++) parray[i].status = PLAYER_EMPTY; } diff --git a/FICS/ratings.c b/FICS/ratings.c index 074b050..0cdfdf5 100644 --- a/FICS/ratings.c +++ b/FICS/ratings.c @@ -673,6 +673,7 @@ com_best(int p, param_list param) PUBLIC void rating_init(void) { + (void) fprintf(stderr, "FICS: %s()\n", __func__); zero_stats(); load_ratings(); } -- cgit v1.2.3