mirror of
https://github.com/nasa/trick.git
synced 2025-02-07 11:20:24 +00:00
init value and style change VariableServerListenThread.cpp
This commit is contained in:
parent
2c43321076
commit
7b3b47aa39
@ -116,7 +116,7 @@ void * Trick::VariableServerListenThread::thread_body() {
|
||||
std::string version;
|
||||
char * user_name ;
|
||||
|
||||
int mcast_socket ;
|
||||
int mcast_socket = 0;
|
||||
struct sockaddr_in mcast_addr ;
|
||||
struct sockaddr_in mcast_addr_legacy ;
|
||||
|
||||
@ -177,8 +177,7 @@ void * Trick::VariableServerListenThread::thread_body() {
|
||||
vst->create_thread() ;
|
||||
vst->wait_for_accept() ;
|
||||
pthread_mutex_unlock(&restart_pause) ;
|
||||
} else {
|
||||
if ( broadcast ) {
|
||||
} else if ( broadcast ) {
|
||||
sprintf(buf1 , "%s\t%hu\t%s\t%d\t%s\t%s\t%s\t%s\t%s\t%hu\n" , listen_dev.hostname , (unsigned short)listen_dev.port ,
|
||||
user_name , (int)getpid() , command_line_args_get_default_dir() , command_line_args_get_cmdline_name() ,
|
||||
command_line_args_get_input_file() , version.c_str() , user_tag.c_str(), (unsigned short)listen_dev.port ) ;
|
||||
@ -188,8 +187,6 @@ void * Trick::VariableServerListenThread::thread_body() {
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return NULL ;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user