From 5e05b59025715f21accb1f9378b3fdcd8e33ed2c Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Sat, 19 Oct 2019 18:36:54 -0600 Subject: [PATCH] ttserver: fixup forward (vexing) fucntion decl's in main, get rid of **environ --- cde/lib/tt/bin/ttsession/mp_server.C | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/cde/lib/tt/bin/ttsession/mp_server.C b/cde/lib/tt/bin/ttsession/mp_server.C index 91c1f727..73dded78 100644 --- a/cde/lib/tt/bin/ttsession/mp_server.C +++ b/cde/lib/tt/bin/ttsession/mp_server.C @@ -64,8 +64,6 @@ static char PatchID[] = "Patch Id: 100626_03."; static int Patch_ID100626_03; #endif -extern char **environ; - // flag set by the signal handler function whenever we receive a // signal that the types database changed. int signal_types_changed = 0; @@ -139,6 +137,13 @@ pid_t child_waited_for; // _Tt_s_mp::_Tt_s_mp) pid_t failed_procs[MAXPIDS]; +// Forward declarations +void install_signal_handler(); +void notify_start_failure(); +int init_types(); +void print_usage_and_exit(); + + // // Returns diagnosed child exit status, or -1 if we are not convinced // the child exited. @@ -170,10 +175,6 @@ child_exit_status(pid_t child, _Tt_wait_status status) int main(int argc, char **argv) { - void install_signal_handler(); - void notify_start_failure(); - int init_types(); - void print_usage_and_exit(); char *cmd = (char *)0; char *cargv[MAXARGS]; int c; -- 2.25.1