Skip to content
Snippets Groups Projects
Commit 047b18e9 authored by ANTA's avatar ANTA
Browse files

'fix5'

parent 4cf1a848
No related branches found
No related tags found
No related merge requests found
......@@ -352,16 +352,22 @@ int main(int argc, const char * argv[])
*/
static int s_init(int argc, const char * argv[])
{
if ( dap_common_init( DAP_APP_NAME, DAP_APP_NAME"_logs.txt") != 0 ) {
printf( "Fatal Error: Can't init common functions module" );
return -2;
}
dap_config_init(SYSTEM_CONFIGS_DIR);
if((g_config = dap_config_open(DAP_APP_NAME) ) == NULL) {
log_it(L_CRITICAL,"Can't init general configurations");
return -1;
}
if(dap_common_init(DAP_APP_NAME"_logs.txt")!=0){
log_it(L_CRITICAL,"Can't init common functions module");
return -2;
}
// if(dap_common_init(DAP_APP_NAME"_logs.txt")!=0){
// log_it(L_CRITICAL,"Can't init common functions module");
// return -2;
// }
if (dap_chain_init() != 0 ){
log_it(L_CRITICAL,"Can't chain module");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment