summaryrefslogtreecommitdiffstats
path: root/ctl-lib/ctl-control.c
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-05-14 15:08:31 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-05-14 15:09:19 +0200
commitb5ceb3cca02bd46d2a6296631fe607b3edd38e17 (patch)
tree27bf59f5c7a3663036e0a364033ebc1b87490aa5 /ctl-lib/ctl-control.c
parent0ff8c30892be48ecba1265276532f94b242f6289 (diff)
Format
Change-Id: Ied901f39cd6814e5afd9811248b0a1fb401f3e76 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'ctl-lib/ctl-control.c')
-rw-r--r--ctl-lib/ctl-control.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/ctl-lib/ctl-control.c b/ctl-lib/ctl-control.c
index 914b51f..0605d6b 100644
--- a/ctl-lib/ctl-control.c
+++ b/ctl-lib/ctl-control.c
@@ -23,7 +23,7 @@
#include "ctl-config.h"
// onload section receive one action or an array of actions
-PUBLIC int ControlConfig(AFB_ApiT apiHandle, CtlSectionT *section, json_object *actionsJ) {
+int ControlConfig(AFB_ApiT apiHandle, CtlSectionT *section, json_object *actionsJ) {
// Load time parse actions in config file
if (actionsJ != NULL) {
@@ -31,12 +31,8 @@ PUBLIC int ControlConfig(AFB_ApiT apiHandle, CtlSectionT *section, json_object *
if (!section->actions) {
AFB_ApiError (apiHandle, "ControlLoad config fail processing onload actions");
- goto OnErrorExit;
+ return 1;
}
}
return 0;
-
-OnErrorExit:
- return 1;
-
}