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:
frtabu
2017-10-01 19:19:36 +02:00
parent b5a36dd90c
commit d88b72498d
5 changed files with 26 additions and 17 deletions
+1 -3
View File
@@ -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