v4.0.0-rc4 - add config parsing
This commit is contained in:
@@ -200,7 +200,10 @@ init_config()
|
|||||||
return(EXIT_FAILURE);
|
return(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (LG_VERBOSE == 1) {
|
||||||
infolog("Initialized libconfig");
|
infolog("Initialized libconfig");
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -217,7 +220,11 @@ int
|
|||||||
die_config()
|
die_config()
|
||||||
{
|
{
|
||||||
config_destroy(&cfg);
|
config_destroy(&cfg);
|
||||||
|
|
||||||
|
if (LG_VERBOSE == 1) {
|
||||||
infolog("Destroyed libconfig");
|
infolog("Destroyed libconfig");
|
||||||
|
}
|
||||||
|
|
||||||
return(EXIT_SUCCESS);
|
return(EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user