Commit 5b9a9959 authored by Lucas Russo's avatar Lucas Russo

dev_mngr/dev_mngr.c: remove duplicate config file checking

parent 862746be
......@@ -180,28 +180,6 @@ int main (int argc, char *argv[])
goto err_cfg_exit;
}
/* Check for field not found */
if (dmngr_daemonize_str== NULL) {
DBE_DEBUG (DBG_DEV_MNGR | DBG_LVL_FATAL, "[dev_mngr] Could not find "
"daemonize in configuration file\n");
goto err_cfg_exit;
}
else {
if (streq (dmngr_daemonize_str, "yes")) {
dmngr_daemonize = 1;
}
else if (streq (dmngr_daemonize_str, "no")) {
dmngr_daemonize = 0;
}
else {
DBE_DEBUG (DBG_DEV_MNGR | DBG_LVL_FATAL, "[dev_mngr] Invalid option "
"for daemonize configuration variable\n");
goto err_cfg_exit;
}
}
DBE_DEBUG (DBG_DEV_MNGR | DBG_LVL_INFO,
"[dev_mngr] Daemonize set to \"%d\"\n", dmngr_daemonize);
/**************************************************************************/
/********************** END of configuration variables ********************/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment