aboutsummaryrefslogtreecommitdiffstats
path: root/controller/ctl-onload.c
diff options
context:
space:
mode:
Diffstat (limited to 'controller/ctl-onload.c')
-rw-r--r--controller/ctl-onload.c10
1 files changed, 5 insertions, 5 deletions
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;