From d663f702c0e4fa562783504a483dce8f362d628e Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Tue, 12 Sep 2017 00:29:28 +0200 Subject: Progression on config parsing. Change-Id: Idd8d8987ccabef381f6d79c1d508930a2d4bae3c Signed-off-by: Romain Forlot --- controller/ctl-onload.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'controller/ctl-onload.c') diff --git a/controller/ctl-onload.c b/controller/ctl-onload.c index 97bd109..5000542 100644 --- a/controller/ctl-onload.c +++ b/controller/ctl-onload.c @@ -23,19 +23,19 @@ #include "ctl-config.h" // onload section receive one action or an array of actions -PUBLIC int OnloadConfig(CtlSectionT *section, json_object *actionsJ) { +int OnloadConfig(CtlSectionT *section, json_object *actionsJ) { CtlActionT *actions; - + // Load time parse actions in config file if (actionsJ != NULL) { actions= ActionLoad(actionsJ); section->handle=actions; - + if (!actions) { AFB_ERROR ("OnloadLoad config fail processing onload actions"); goto OnErrorExit; } - + } else { // Exec time process onload action now actions=(CtlActionT*)section->handle; @@ -46,7 +46,7 @@ PUBLIC int OnloadConfig(CtlSectionT *section, json_object *actionsJ) { for (int idx=0; actions[idx].source.label != NULL; idx ++) { ActionExecOne(&actions[idx], NULL); - } + } } return 0; -- cgit 1.2.3-korg