remove getopt call in configuration module, it changes the argv order. Fix configuration module bugs (command line arguments sometimes not properly processed
This commit is contained in:
@@ -584,7 +584,7 @@ static void get_options(void) {
|
||||
if(config_isparamset(cmdline_logparams,CMDLINE_GLOGLEVEL_IDX)) {
|
||||
set_glog(glog_level, -1);
|
||||
}
|
||||
if(config_isparamset(cmdline_logparams,CMDLINE_GLOGLEVEL_IDX)) {
|
||||
if(config_isparamset(cmdline_logparams,CMDLINE_GLOGVERBO_IDX)) {
|
||||
set_glog(-1, glog_verbosity);
|
||||
}
|
||||
if (start_telnetsrv) {
|
||||
@@ -889,7 +889,6 @@ int main( int argc, char **argv )
|
||||
if ( load_configmodule(argc,argv) == NULL) {
|
||||
exit_fun("[SOFTMODEM] Error, configuration module init failed\n");
|
||||
}
|
||||
|
||||
|
||||
#ifdef DEBUG_CONSOLE
|
||||
setvbuf(stdout, NULL, _IONBF, 0);
|
||||
@@ -920,7 +919,6 @@ int main( int argc, char **argv )
|
||||
}
|
||||
|
||||
|
||||
|
||||
#if T_TRACER
|
||||
T_init(T_port, T_wait, T_dont_fork);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user