diff options
| author | Markus Uhlin <markus@nifty-networks.net> | 2026-03-23 20:17:39 +0100 |
|---|---|---|
| committer | Markus Uhlin <markus@nifty-networks.net> | 2026-03-23 20:17:39 +0100 |
| commit | 2a59f55e8c0039374ce9f7bd55a25af95609b321 (patch) | |
| tree | e6aad1a361242883a0f8dd84187755b233e8090c | |
| parent | e69a766d7d72a3551dc8bde4926d98a06b4c7ee2 (diff) | |
Moved fprintf() calls and fixed hardcoded function names
| -rw-r--r-- | FICS/board.c | 2 | ||||
| -rw-r--r-- | FICS/command.c | 2 | ||||
| -rw-r--r-- | FICS/eco.c | 2 | ||||
| -rw-r--r-- | FICS/ficsmain.c | 8 | ||||
| -rw-r--r-- | FICS/playerdb.c | 2 | ||||
| -rw-r--r-- | 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); @@ -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(); } |
