mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
ttserver: fixup forward (vexing) fucntion decl's in main, get rid of **environ
This commit is contained in:
parent
14e385d175
commit
5e05b59025
1 changed files with 7 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue