summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
64e19e1)
As it's no longer needed once the config file was parsed. Also, rename cf to
config_file.
* */
int main(int argc, char *argv[])
{
* */
int main(int argc, char *argv[])
{
int ret, i;
struct sched s;
struct command_task command_task_struct, *cmd_task = &command_task_struct;
int ret, i;
struct sched s;
struct command_task command_task_struct, *cmd_task = &command_task_struct;
audiod_cmdline_parser(argc, argv, &conf);
HANDLE_VERSION_FLAG("audiod", conf);
para_drop_privileges(conf.user_arg, conf.group_arg);
audiod_cmdline_parser(argc, argv, &conf);
HANDLE_VERSION_FLAG("audiod", conf);
para_drop_privileges(conf.user_arg, conf.group_arg);
- cf = configfile_exists();
- if (cf) {
+ config_file = configfile_exists();
+ if (config_file) {
struct audiod_cmdline_parser_params params = {
.override = 0,
.initialize = 0,
struct audiod_cmdline_parser_params params = {
.override = 0,
.initialize = 0,
- if (audiod_cmdline_parser_config_file(cf, &conf, ¶ms)) {
+ if (audiod_cmdline_parser_config_file(config_file, &conf, ¶ms)) {
PARA_EMERG_LOG("%s", "parse error in config file\n");
exit(EXIT_FAILURE);
}
PARA_EMERG_LOG("%s", "parse error in config file\n");
exit(EXIT_FAILURE);
}
}
if (conf.logfile_given)
logfile = open_log(conf.logfile_arg);
}
if (conf.logfile_given)
logfile = open_log(conf.logfile_arg);