ttserver: fixup forward (vexing) fucntion decl's in main, get rid of **environ
authorJon Trulson <jon@radscan.com>
Sun, 20 Oct 2019 00:36:54 +0000 (18:36 -0600)
committerJon Trulson <jon@radscan.com>
Sun, 20 Oct 2019 00:36:54 +0000 (18:36 -0600)
cde/lib/tt/bin/ttsession/mp_server.C

index 91c1f727a9845458f54e852af908fa8b9206e57b..73dded78497a8b87ea4a8388391b6c6cee49c531 100644 (file)
@@ -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;