From d0563706f01f9da67de39a30e6eeb324cc25652d Mon Sep 17 00:00:00 2001 From: Fulup Ar Foll Date: Tue, 24 Oct 2017 22:17:59 +0200 Subject: First working version as submodule --- ctl-lib/ctl-onload.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ctl-lib/ctl-onload.c') diff --git a/ctl-lib/ctl-onload.c b/ctl-lib/ctl-onload.c index 1dec75a..7658622 100644 --- a/ctl-lib/ctl-onload.c +++ b/ctl-lib/ctl-onload.c @@ -41,9 +41,9 @@ PUBLIC int OnloadConfig(AFB_ApiT apiHandle, CtlSectionT *section, json_object *a goto OnErrorExit; } - for (int idx=0; section->actions[idx].label != NULL; idx ++) { + for (int idx=0; section->actions[idx].uid != NULL; idx ++) { CtlSourceT source; - source.label = section->actions[idx].label; + source.uid = section->actions[idx].uid; source.api = section->actions[idx].api; source.request = AFB_ReqNone; -- cgit 1.2.3-korg