mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-14 08:31:02 +00:00
Fix some indentation in stasis_config.c.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@393600 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -152,18 +152,19 @@ static int process_config(int reload)
|
|||||||
{
|
{
|
||||||
RAII_VAR(struct stasis_conf *, conf, conf_alloc(), ao2_cleanup);
|
RAII_VAR(struct stasis_conf *, conf, conf_alloc(), ao2_cleanup);
|
||||||
|
|
||||||
switch (aco_process_config(&cfg_info, reload)) {
|
switch (aco_process_config(&cfg_info, reload)) {
|
||||||
case ACO_PROCESS_ERROR:
|
case ACO_PROCESS_ERROR:
|
||||||
if (conf && !reload && !aco_set_defaults(&threadpool_option, "threadpool", conf->threadpool)) {
|
if (conf && !reload
|
||||||
ast_log(AST_LOG_NOTICE, "Failed to process Stasis configuration; using defaults\n");
|
&& !aco_set_defaults(&threadpool_option, "threadpool", conf->threadpool)) {
|
||||||
ao2_global_obj_replace(confs, conf);
|
ast_log(AST_LOG_NOTICE, "Failed to process Stasis configuration; using defaults\n");
|
||||||
return 0;
|
ao2_global_obj_replace(confs, conf);
|
||||||
}
|
return 0;
|
||||||
return -1;
|
|
||||||
case ACO_PROCESS_OK:
|
|
||||||
case ACO_PROCESS_UNCHANGED:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
return -1;
|
||||||
|
case ACO_PROCESS_OK:
|
||||||
|
case ACO_PROCESS_UNCHANGED:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user