From cfd7792c40232af1cb14ea4d0efd93bc8ca0d983 Mon Sep 17 00:00:00 2001 From: Jonathan Aillet Date: Sat, 9 Jun 2018 17:56:08 +0200 Subject: Change paramters in functions handling hal data Change paramters in functions handling hal data structure. Now, the only thing you need to add/search for/remove something in hal data structure list is the address of the first element of the list instead of the address of the whole hal manager data structure. Change-Id: Iafa7428735c3aa418a6ef6564f9acde8f44e7dfe Signed-off-by: Jonathan Aillet --- 4a-hal/4a-hal-controllers/4a-hal-controllers-api-loader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '4a-hal/4a-hal-controllers/4a-hal-controllers-api-loader.c') diff --git a/4a-hal/4a-hal-controllers/4a-hal-controllers-api-loader.c b/4a-hal/4a-hal-controllers/4a-hal-controllers-api-loader.c index 404ecd2..61b0657 100644 --- a/4a-hal/4a-hal-controllers/4a-hal-controllers-api-loader.c +++ b/4a-hal/4a-hal-controllers/4a-hal-controllers-api-loader.c @@ -174,7 +174,7 @@ int HalCtlsCreateApi(AFB_ApiT apiHandle, char *path, struct HalMgrData *HalMgrGl } // Allocation of current hal controller data - currentCtlHalData = HalUtlAddHalApiToHalList(HalMgrGlobalData); + currentCtlHalData = HalUtlAddHalApiToHalList(&HalMgrGlobalData->first); if(! currentCtlHalData) return -4; -- cgit 1.2.3-korg